public class BufferPlugin extends POPBuffer
messageHeader, size| Constructor and Description |
|---|
BufferPlugin() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
MessageHeader |
extractHeader()
Retrieve the message header from the buffer
|
byte |
get()
Retrieve a byte from the buffer
|
boolean |
getBoolean()
Retrieve a boolean from the buffer
|
boolean[] |
getBooleanArray(int length)
Retrieve a boolean array from the buffer
|
byte[] |
getByteArray(int length)
Retrieve a byte array from the buffer
|
char |
getChar()
Retrieve a char from the buffer
|
char[] |
getCharArray(int length)
Retrieve a char array from the buffer
|
double |
getDouble()
Retrieve a double from the buffer
|
double[] |
getDoubleArray(int length)
Retrieve a double array from the buffer
|
float |
getFloat()
Retrieve a float from the buffer
|
float[] |
getFloatArray(int length)
Retrieve a float array from the buffer
|
int |
getInt()
Retrieve a int from the buffer
|
int[] |
getIntArray(int length)
Retrieve a int array from the buffer
|
long |
getLong()
Retrieve a long from the buffer
|
long[] |
getLongArray(int length)
Retrieve a long array from the buffer
|
short |
getShort()
Retrieve a short from the buffer
|
short[] |
getShortArray(int length)
Retrieve a short array from the buffer
|
java.lang.String |
getString()
Retrieve a string from the buffer
|
int |
getTranslatedInteger(byte[] value)
Get a integer value of the byte array
|
int |
packMessageHeader()
Pack the message header into the buffer
|
void |
put(byte value)
Insert a byte in the buffer
|
void |
put(byte[] data)
Insert a byte array into the buffer
|
void |
put(byte[] data,
int offset,
int length)
Insert a byte array into a specific place in the buffer
|
void |
putBoolean(boolean value)
Insert a boolean in the buffer
|
void |
putBooleanArray(boolean[] value)
Insert a boolean array into the buffer
|
void |
putByteArray(byte[] value)
Insert a byte array into the buffer
|
void |
putChar(char value)
Insert a char into the buffer
|
void |
putCharArray(char[] value)
Insert a char array into the buffer
|
void |
putDouble(double value)
Insert a double value into the buffer
|
void |
putDoubleArray(double[] value)
Insert a double array into the buffer
|
void |
putFloat(float value)
Insert a float value into the buffer
|
void |
putFloatArray(float[] value)
Insert a float array into the buffer
|
void |
putInt(int value)
Insert a int into the buffer
|
void |
putIntArray(int[] value)
Insert a int array into the buffer
|
void |
putLong(long value)
Insert a long into the buffer
|
void |
putLongArray(long[] value)
Insert a long array into the buffer
|
void |
putShort(short value)
Insert a short into the buffer
|
void |
putShortArray(short[] value)
Insert a short array into the buffer
|
void |
putString(java.lang.String value)
Insert a string into the buffer
|
void |
reset()
Erase the buffer and set the pointer to the beginning
|
void |
resetToReceive()
Reset the buffer before reception of a new message
|
checkAndThrow, deserializeReferenceObject, getArray, getHeader, getValue, getValue, putArray, putValue, serializeReferenceObject, setHeader, size, toCharString, toIntStringpublic MessageHeader extractHeader()
POPBufferextractHeader in class POPBufferpublic byte get()
POPBufferpublic boolean getBoolean()
POPBuffergetBoolean in class POPBufferpublic boolean[] getBooleanArray(int length)
POPBuffergetBooleanArray in class POPBufferlength - length of the array to retrievepublic byte[] getByteArray(int length)
POPBuffergetByteArray in class POPBufferlength - length of the array to retrievepublic char getChar()
POPBufferpublic double getDouble()
POPBufferpublic double[] getDoubleArray(int length)
POPBuffergetDoubleArray in class POPBufferlength - length of the array to retrievepublic float getFloat()
POPBufferpublic float[] getFloatArray(int length)
POPBuffergetFloatArray in class POPBufferlength - length of the array to retrievepublic int getInt()
POPBufferpublic int[] getIntArray(int length)
POPBuffergetIntArray in class POPBufferlength - length of the array to retrievepublic long getLong()
POPBufferpublic long[] getLongArray(int length)
POPBuffergetLongArray in class POPBufferlength - length of the array to retrievepublic java.lang.String getString()
POPBufferpublic void put(byte value)
POPBufferpublic void put(byte[] data)
POPBufferpublic void put(byte[] data,
int offset,
int length)
POPBufferpublic void putBoolean(boolean value)
POPBufferputBoolean in class POPBuffervalue - boolean value to insertpublic void putBooleanArray(boolean[] value)
POPBufferputBooleanArray in class POPBuffervalue - boolean array to insertpublic void putByteArray(byte[] value)
POPBufferputByteArray in class POPBuffervalue - byte array to insertpublic void putChar(char value)
POPBufferpublic void putDouble(double value)
POPBufferpublic void putDoubleArray(double[] value)
POPBufferputDoubleArray in class POPBuffervalue - double array to insertpublic void putFloat(float value)
POPBufferpublic void putFloatArray(float[] value)
POPBufferputFloatArray in class POPBuffervalue - float array to insertpublic void putInt(int value)
POPBufferpublic void putIntArray(int[] value)
POPBufferputIntArray in class POPBuffervalue - int array to insertpublic void putLong(long value)
POPBufferpublic void putLongArray(long[] value)
POPBufferputLongArray in class POPBuffervalue - long array to insertpublic void putString(java.lang.String value)
POPBufferpublic void reset()
POPBufferpublic void resetToReceive()
POPBufferresetToReceive in class POPBufferpublic int getTranslatedInteger(byte[] value)
POPBuffergetTranslatedInteger in class POPBuffervalue - The byte array to translatepublic int packMessageHeader()
POPBufferpackMessageHeader in class POPBufferpublic short getShort()
POPBufferpublic short[] getShortArray(int length)
POPBuffergetShortArray in class POPBufferlength - length of the array to retrievepublic void putShort(short value)
POPBufferpublic void putShortArray(short[] value)
POPBufferputShortArray in class POPBuffervalue - short array to insertpublic char[] getCharArray(int length)
POPBuffergetCharArray in class POPBufferlength - length of the array to retrievepublic void putCharArray(char[] value)
POPBufferputCharArray in class POPBuffervalue - char array to insert