| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static GrowableDataBuffer. | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv Object[] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(GrowableDataBuffer
the gdb)GrowableDataBuffer to append to this objectAppends the contents of both the byte and |
| private void | |
| private void | |
| public boolean | Returns: the decoded boolean valueDecodes and returns a single boolean value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public static GrowableDataBuffer | Returns: aGrowableDataBuffer object of the requested sizethe minimum initial size of the byte-encoding buffer minsize)Retrieve a buffer with an initial byte-encoding capacity of at least
|
| public static synchronized GrowableDataBuffer | Returns: aGrowableDataBuffer object of the requested sizesthe minimum initial size of the byte-encoding buffer minvals, int the minimum initial size of the Object buffer minobjs)Retrieve a buffer with an initial byte-encoding capacity of at least
|
| public byte | Returns: the decoded byte valueReturns a single byte value from the current read position in the byte-encoded stream and bumps the read position past the returned value. |
| public char | Returns: the decoded char valueDecodes and returns a single char value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public double | Returns: the decoded double valueDecodes and returns a single double value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public float | Returns: the decoded float valueDecodes and returns a single float value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public int | Returns: the decoded int valueDecodes and returns a single int value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public long | Returns: the decoded long valueDecodes and returns a single long value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public Object | Returns: theObject read from the bufferReturns a single |
| public short | Returns: the decoded short valueDecodes and returns a single short value from the current read position in the byte-encoded stream and bumps the read position past the decoded value. |
| public int | Returns: the decoded unsigned byte value as an intDecodes a single unsigned byte value from the current read position in the byte-encoded stream and returns the value cast to an int and bumps the read position past the decoded value. |
| public boolean | Returns: true iff there are objects to be readIndicates whether or not there are objects in the object buffer waiting to be read. |
| public boolean | Returns: true iff there are data values to be readIndicates whether or not there are values in the byte-encoding buffer waiting to be read. |
| public boolean | Returns: true iff there is no data at all stored in the byte bufferIndicates whether the byte-encoding buffer is completely empty. |
| public int | Returns: the capacity of theObject bufferThe capacity, in objects, of the |
| public byte | Returns: the byte stored at the indicated location in the byte arraythe absolute byte location to return from the byte-encoding array i)Read a single byte from the byte-encoded stream, ignoring any read position, but honoring the current write position as a limit. |
| public Object | Returns: theObject stored at the indicated indexthe absolute index to return from the i)Object arrayRead a single |
| public void | putBoolean(boolean
the boolean value to be written b)Encode a boolean value and write it to the end of the byte-encoding array |
| public void | |
| public void | putChar(char
the char value to be written c)Encode a char value and write it to the end of the byte-encoding array |
| public void | putDouble(double
the double value to be written d)Encode a double value and write it to the end of the byte-encoding array |
| public void | putFloat(float
the float value to be written f)Encode a float value and write it to the end of the byte-encoding array |
| public void | putInt(int
the int value to be written i)Encode an int value and write it to the end of the byte-encoding array |
| public void | putLong(long
the long value to be written l)Encode a long value and write it to the end of the byte-encoding array |
| public void | |
| public void | putShort(short
the short value to be written s)Encode a short value and write it to the end of the byte-encoding array |
| public int | Returns: the position of the next object to be read.The location of the next object to be read from the object buffer. |
| public int | Returns: the byte position of the next byte data to be read.The location of the next byte to be read from the encoded value buffer. |
| public void | reset()
Clears out all data and resets all positions to the start of the buffers so that a new sequence of writing, then reading of data and objects can begin. |
| public void | restore()
Restore the read positions of both the byte-encoding buffer and
the |
| public static synchronized void | returnBuffer(GrowableDataBuffer retgdb)
Return the indicated |
| public void | save()
Save aside the current read positions of both the byte-encoding
buffer and the |
| public int | Returns: the capacity of the byte-encoding bufferThe capacity, in bytes, of the byte-encoding buffer. |
| public int | Returns: the position of the next object to be written.The location of the next object to be written to the object buffer. |
| public int | Returns: the byte position of the next byte data to be written.The location of the next byte to be written to the encoded value buffer. |
| buflist | back to summary |
|---|---|
| pack-priv static GrowableDataBuffer. | |
| MAX_VAL_GROW | back to summary |
|---|---|
| pack-priv static final int MAX_VAL_GROW | |
| MIN_OBJ_GROW | back to summary |
|---|---|
| pack-priv static final int MIN_OBJ_GROW | |
| objs | back to summary |
|---|---|
| pack-priv Object[] objs | |
| readobjpos | back to summary |
|---|---|
| pack-priv int readobjpos | |
| readvalpos | back to summary |
|---|---|
| pack-priv int readvalpos | |
| saveobjpos | back to summary |
|---|---|
| pack-priv int saveobjpos | |
| savevalpos | back to summary |
|---|---|
| pack-priv int savevalpos | |
| VAL_GROW_QUANTUM | back to summary |
|---|---|
| pack-priv static final int VAL_GROW_QUANTUM | |
| vals | back to summary |
|---|---|
| pack-priv byte[] vals | |
| writeobjpos | back to summary |
|---|---|
| pack-priv int writeobjpos | |
| writevalpos | back to summary |
|---|---|
| pack-priv int writevalpos | |
| GrowableDataBuffer | back to summary |
|---|---|
| private GrowableDataBuffer(int initvalsize, int initobjsize) | |
| append | back to summary |
|---|---|
| public void append(GrowableDataBuffer gdb) Appends the contents of both the byte and
| |
| ensureReadCapacity | back to summary |
|---|---|
| private void ensureReadCapacity(int bytesneeded) | |
| ensureWriteCapacity | back to summary |
|---|---|
| private void ensureWriteCapacity(int newbytes) | |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean() Decodes and returns a single boolean value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getBuffer | back to summary |
|---|---|
| public static GrowableDataBuffer getBuffer(int minsize) Retrieve a buffer with an initial byte-encoding capacity of at least
| |
| getBuffer | back to summary |
|---|---|
| public static synchronized GrowableDataBuffer getBuffer(int minvals, int minobjs) Retrieve a buffer with an initial byte-encoding capacity of at least
| |
| getByte | back to summary |
|---|---|
| public byte getByte() Returns a single byte value from the current read position in the byte-encoded stream and bumps the read position past the returned value.
| |
| getChar | back to summary |
|---|---|
| public char getChar() Decodes and returns a single char value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getDouble | back to summary |
|---|---|
| public double getDouble() Decodes and returns a single double value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getFloat | back to summary |
|---|---|
| public float getFloat() Decodes and returns a single float value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getInt | back to summary |
|---|---|
| public int getInt() Decodes and returns a single int value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getLong | back to summary |
|---|---|
| public long getLong() Decodes and returns a single long value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getObject | back to summary |
|---|---|
| public Object getObject() Returns a single
| |
| getShort | back to summary |
|---|---|
| public short getShort() Decodes and returns a single short value from the current read position in the byte-encoded stream and bumps the read position past the decoded value.
| |
| getUByte | back to summary |
|---|---|
| public int getUByte() Decodes a single unsigned byte value from the current read position in the byte-encoded stream and returns the value cast to an int and bumps the read position past the decoded value.
| |
| hasObjects | back to summary |
|---|---|
| public boolean hasObjects() Indicates whether or not there are objects in the object buffer waiting to be read.
| |
| hasValues | back to summary |
|---|---|
| public boolean hasValues() Indicates whether or not there are values in the byte-encoding buffer waiting to be read.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Indicates whether the byte-encoding buffer is completely empty. Note that this is different from whether or not there is unread data in the byte-encoding buffer. A buffer which has been written and then later fully emptied by reading is not considered "empty".
| |
| objectCapacity | back to summary |
|---|---|
| public int objectCapacity() The capacity, in objects, of the
| |
| peekByte | back to summary |
|---|---|
| public byte peekByte(int i) Read a single byte from the byte-encoded stream, ignoring any read position, but honoring the current write position as a limit. The read and saved positions are not used or modified in any way by this method
| |
| peekObject | back to summary |
|---|---|
| public Object peekObject(int i) Read a single
| |
| putBoolean | back to summary |
|---|---|
| public void putBoolean(boolean b) Encode a boolean value and write it to the end of the byte-encoding array
| |
| putByte | back to summary |
|---|---|
| public void putByte(byte b) Write a byte value to the end of the byte-encoding array
| |
| putChar | back to summary |
|---|---|
| public void putChar(char c) Encode a char value and write it to the end of the byte-encoding array
| |
| putDouble | back to summary |
|---|---|
| public void putDouble(double d) Encode a double value and write it to the end of the byte-encoding array
| |
| putFloat | back to summary |
|---|---|
| public void putFloat(float f) Encode a float value and write it to the end of the byte-encoding array
| |
| putInt | back to summary |
|---|---|
| public void putInt(int i) Encode an int value and write it to the end of the byte-encoding array
| |
| putLong | back to summary |
|---|---|
| public void putLong(long l) Encode a long value and write it to the end of the byte-encoding array
| |
| putObject | back to summary |
|---|---|
| public void putObject(Object o) Write an
| |
| putShort | back to summary |
|---|---|
| public void putShort(short s) Encode a short value and write it to the end of the byte-encoding array
| |
| readObjectPosition | back to summary |
|---|---|
| public int readObjectPosition() The location of the next object to be read from the object buffer.
This must always be less than or equal to the
| |
| readValuePosition | back to summary |
|---|---|
| public int readValuePosition() The location of the next byte to be read from the encoded value
buffer.
This must always be less than or equal to the
| |
| reset | back to summary |
|---|---|
| public void reset() Clears out all data and resets all positions to the start of the
buffers so that a new sequence of writing, then reading of data
and objects can begin.
Note that the | |
| restore | back to summary |
|---|---|
| public void restore() Restore the read positions of both the byte-encoding buffer and
the | |
| returnBuffer | back to summary |
|---|---|
| public static synchronized void returnBuffer(GrowableDataBuffer retgdb) Return the indicated | |
| save | back to summary |
|---|---|
| public void save() Save aside the current read positions of both the byte-encoding
buffer and the | |
| valueCapacity | back to summary |
|---|---|
| public int valueCapacity() The capacity, in bytes, of the byte-encoding buffer.
| |
| writeObjectPosition | back to summary |
|---|---|
| public int writeObjectPosition() The location of the next object to be written to the object buffer.
| |
| writeValuePosition | back to summary |
|---|---|
| public int writeValuePosition() The location of the next byte to be written to the encoded value buffer.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv WeakReference | |
| pack-priv GrowableDataBuffer. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| bufref | back to summary |
|---|---|
| pack-priv WeakReference<GrowableDataBuffer> bufref | |
| next | back to summary |
|---|---|
| pack-priv GrowableDataBuffer. | |
| WeakLink | back to summary |
|---|---|
| pack-priv WeakLink() | |