Packageorg.purepdf.pdf
Classpublic class ByteBuffer
InheritanceByteBuffer Inheritance Object
Implements IOutputStream



Public Properties
 PropertyDefined By
  size : int
ByteBuffer
Protected Properties
 PropertyDefined By
  buf : Bytes
ByteBuffer
  count : int
ByteBuffer
Public Methods
 MethodDefined By
  
ByteBuffer
  
Append a generic object to the current content
ByteBuffer
  
ByteBuffer
  
append_bytearray(b:ByteArray, off:int = 0, len:int = 0):ByteBuffer
ByteBuffer
  
Appends another ByteBuffer to this buffer.
ByteBuffer
  
append_bytes(b:Bytes, off:int = 0, len:int = 0):ByteBuffer
ByteBuffer
  
append_char(value:String):ByteBuffer
Append one char to the array
ByteBuffer
  
ByteBuffer
  
ByteBuffer
  
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
Public Constants
 ConstantDefined 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
Property Detail
bufproperty
protected var buf:Bytes

countproperty 
protected var count:int

sizeproperty 
size:int


Implementation
    public function get size():int
    public function set size(value:int):void
Constructor Detail
ByteBuffer()Constructor
public function ByteBuffer()



Method Detail
append()method
public function append(value:*):ByteBuffer

Append a generic object to the current content

Parameters

value:* — only String or int are allowed here

Returns
ByteBuffer
append_byte()method 
public function append_byte(b:int):ByteBuffer

Parameters

b:int

Returns
ByteBuffer
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)

Returns
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

Returns
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)

Returns
ByteBuffer
append_char()method 
public function append_char(value:String):ByteBuffer

Append one char to the array

Parameters

value:String

Returns
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

Returns
ByteBuffer — a reference to this ByteBuffer object
append_number()method 
public function append_number(value:Number):ByteBuffer

Parameters

value:Number

Returns
ByteBuffer
append_separator()method 
public function append_separator():ByteBuffer

Returns
ByteBuffer
append_string()method 
public function append_string(str:String):ByteBuffer

Parameters

str:String

Returns
ByteBuffer
appendHex()method 
public function appendHex(b:int):ByteBuffer

Parameters

b:int

Returns
ByteBuffer
formatDouble()method 
public static function formatDouble(d:Number, buf:ByteBuffer = null):String

Parameters

d:Number
 
buf:ByteBuffer (default = null)

Returns
String
getBuffer()method 
public function getBuffer():ByteArray

Returns
ByteArray
intToByte()method 
public static function intToByte(value:int):int

Parameters

value:int

Returns
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.

Returns
Bytes — the current contents of this output stream, as a byte array.
toString()method 
public function toString():String

Returns
String
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.

Constant Detail
BYTE_MAX_VALUEConstant
public static const BYTE_MAX_VALUE:int = 127

BYTE_MIN_VALUEConstant 
public static const BYTE_MIN_VALUE:int = -128

SEPARATORConstant 
public static const SEPARATOR:int = 10

ZEROConstant 
public static const ZERO:int = 48