Package | org.purepdf.pdf |
Class | public class ByteBuffer |
Inheritance | ByteBuffer Object |
Implements | IOutputStream |
Property | Defined By | ||
---|---|---|---|
size : int | ByteBuffer |
Method | Defined By | ||
---|---|---|---|
ByteBuffer | |||
append(value:*):ByteBuffer
Append a generic object to the current content
| ByteBuffer | ||
append_byte(b:int):ByteBuffer | ByteBuffer | ||
append_bytearray(b:ByteArray, off:int = 0, len:int = 0):ByteBuffer | ByteBuffer | ||
Appends another ByteBuffer to this buffer. | ByteBuffer | ||
ByteBuffer | |||
append_char(value:String):ByteBuffer
Append one char to the array
| ByteBuffer | ||
append_number(value:Number):ByteBuffer | ByteBuffer | ||
ByteBuffer | |||
append_string(str:String):ByteBuffer | ByteBuffer | ||
appendHex(b:int):ByteBuffer | ByteBuffer | ||
formatDouble(d:Number, buf:ByteBuffer = null):String [static] | ByteBuffer | ||
getBuffer():ByteArray | ByteBuffer | ||
intToByte(value:int):int [static] | ByteBuffer | ||
reset():void | ByteBuffer | ||
Creates a newly allocated byte array. | ByteBuffer | ||
toString():String | ByteBuffer | ||
writeByteArray(value:ByteArray, off:int = 0, len:int = 0):void | ByteBuffer | ||
writeBytes(value:Bytes, off:int = 0, len:int = 0):void | ByteBuffer | ||
writeInt(value:int):void | ByteBuffer | ||
writeTo(out:ByteArray):void
Writes the complete contents of this byte buffer output to
the specified output stream argument, as if by calling the output
stream's write method using out.write(buf, 0, count). | ByteBuffer |
Constant | Defined By | ||
---|---|---|---|
BYTE_MAX_VALUE : int = 127 [static] | ByteBuffer | ||
BYTE_MIN_VALUE : int = -128 [static] | ByteBuffer | ||
SEPARATOR : int = 10 [static] | ByteBuffer | ||
ZERO : int = 48 [static] | ByteBuffer |
buf | property |
protected var buf:Bytes
count | property |
protected var count:int
size | property |
size:int
public function get size():int
public function set size(value:int):void
ByteBuffer | () | Constructor |
public function ByteBuffer()
append | () | method |
public function append(value:*):ByteBuffer
Append a generic object to the current content
Parameters
value:* — only String or int are allowed here
|
ByteBuffer |
append_byte | () | method |
append_bytearray | () | method |
public function append_bytearray(b:ByteArray, off:int = 0, len:int = 0):ByteBuffer
Parameters
b:ByteArray | |
off:int (default = 0 )
| |
len:int (default = 0 )
|
ByteBuffer |
append_bytebuffer | () | method |
public function append_bytebuffer(buf:ByteBuffer):ByteBuffer
Appends another ByteBuffer
to this buffer.
Parameters
buf:ByteBuffer — the ByteBuffer to be appended
|
ByteBuffer |
append_bytes | () | method |
public function append_bytes(b:Bytes, off:int = 0, len:int = 0):ByteBuffer
Parameters
b:Bytes | |
off:int (default = 0 )
| |
len:int (default = 0 )
|
ByteBuffer |
append_char | () | method |
public function append_char(value:String):ByteBuffer
Append one char to the array
Parameters
value:String |
ByteBuffer |
append_int | () | method |
pdf_core function append_int(b:int):ByteBuffer
Appends an int
. The size of the array will grow by one.
Parameters
b:int — the int to be appended
|
ByteBuffer — a reference to this ByteBuffer object
|
append_number | () | method |
append_separator | () | method |
append_string | () | method |
appendHex | () | method |
formatDouble | () | method |
public static function formatDouble(d:Number, buf:ByteBuffer = null):String
Parameters
d:Number | |
buf:ByteBuffer (default = null )
|
String |
getBuffer | () | method |
public function getBuffer():ByteArray
ReturnsByteArray |
intToByte | () | method |
public static function intToByte(value:int):int
Parameters
value:int |
int |
reset | () | method |
public function reset():void
toByteArray | () | method |
public function toByteArray():Bytes
Creates a newly allocated byte array. Its size is the current size of this output stream and the valid contents of the buffer have been copied into it.
ReturnsBytes — the current contents of this output stream, as a byte array.
|
toString | () | method |
public function toString():String
ReturnsString |
writeByteArray | () | method |
public function writeByteArray(value:ByteArray, off:int = 0, len:int = 0):void
Parameters
value:ByteArray | |
off:int (default = 0 )
| |
len:int (default = 0 )
|
writeBytes | () | method |
public function writeBytes(value:Bytes, off:int = 0, len:int = 0):void
Parameters
value:Bytes | |
off:int (default = 0 )
| |
len:int (default = 0 )
|
writeInt | () | method |
public function writeInt(value:int):void
Parameters
value:int |
writeTo | () | method |
public function writeTo(out:ByteArray):void
Writes the complete contents of this byte buffer output to
the specified output stream argument, as if by calling the output
stream's write method using out.write(buf, 0, count)
.
Parameters
out:ByteArray — the output stream to which to write the data.
|
BYTE_MAX_VALUE | Constant |
public static const BYTE_MAX_VALUE:int = 127
BYTE_MIN_VALUE | Constant |
public static const BYTE_MIN_VALUE:int = -128
SEPARATOR | Constant |
public static const SEPARATOR:int = 10
ZERO | Constant |
public static const ZERO:int = 48