|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer
synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.ByteSerializer
public class ByteSerializer
The Class ByteSerializer.
| Constructor Summary | |
|---|---|
ByteSerializer()
|
|
| Method Summary | |
|---|---|
static int |
getUnsigned(java.nio.ByteBuffer buffer)
Reads a non-negative byte from the buffer that was written with putUnsigned(ByteBuffer, int). |
static void |
putUnsigned(java.nio.ByteBuffer buffer,
int value)
Writes the specified non-negative int to the buffer, cast as a byte. |
java.lang.Byte |
readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class type,
boolean lengthKnown)
Read object data. |
void |
writeObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Object object,
boolean lengthKnown)
Write object data. |
| Methods inherited from class synergynetframework.appsystem.services.net.objectmessaging.utility.serializers.Serializer |
|---|
newInstance, readNull, readObject, readObjectData, setCanBeNull, writeNull, writeObject, writeObjectData |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteSerializer()
| Method Detail |
|---|
public static int getUnsigned(java.nio.ByteBuffer buffer)
putUnsigned(ByteBuffer, int).
buffer - the buffer
public static void putUnsigned(java.nio.ByteBuffer buffer,
int value)
buffer - the buffervalue - the value
public java.lang.Byte readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class type,
boolean lengthKnown)
throws SerializationException
Serializer
readObjectData in class SerializerconnectionHandler - the connection handlerbuffer - the buffertype - the typelengthKnown - the length known
SerializationException - the serialization exception
public void writeObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Object object,
boolean lengthKnown)
throws SerializationException
Serializer
writeObjectData in class SerializerconnectionHandler - the connection handlerbuffer - the bufferobject - the objectlengthKnown - the length known
SerializationException - the serialization exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||