|
||||||||||
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
public abstract class Serializer
The Class Serializer.
Constructor Summary | |
---|---|
Serializer()
|
Method Summary | ||
---|---|---|
|
newInstance(java.lang.Class<T> type)
New instance. |
|
static boolean |
readNull(java.nio.ByteBuffer buffer)
Read null. |
|
|
readObject(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<T> type)
Read object. |
|
|
readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<T> type)
Read object data. |
|
abstract
|
readObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Class<T> type,
boolean lengthKnown)
Read object data. |
|
void |
setCanBeNull(boolean canBeNull)
Sets the can be null. |
|
static boolean |
writeNull(java.nio.ByteBuffer buffer,
java.lang.Object object)
Write null. |
|
void |
writeObject(ConnectionHandler connectionHandler,
java.lang.Object object,
java.nio.ByteBuffer buffer)
Write object. |
|
abstract void |
writeObjectData(ConnectionHandler connectionHandler,
java.nio.ByteBuffer buffer,
java.lang.Object object,
boolean lengthKnown)
Write object data. |
|
void |
writeObjectData(ConnectionHandler connectionHandler,
java.lang.Object object,
java.nio.ByteBuffer buffer)
Write object data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Serializer()
Method Detail |
---|
public static boolean readNull(java.nio.ByteBuffer buffer)
buffer
- the buffer
public static boolean writeNull(java.nio.ByteBuffer buffer, java.lang.Object object)
buffer
- the bufferobject
- the object
public <T> T newInstance(java.lang.Class<T> type) throws SerializationException
T
- the generic typetype
- the type
SerializationException
- the serialization exceptionpublic final <T> T readObject(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class<T> type) throws SerializationException
T
- the generic typeconnectionHandler
- the connection handlerbuffer
- the buffertype
- the type
SerializationException
- the serialization exceptionpublic <T> T readObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class<T> type) throws SerializationException
T
- the generic typeconnectionHandler
- the connection handlerbuffer
- the buffertype
- the type
SerializationException
- the serialization exceptionpublic abstract <T> T readObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Class<T> type, boolean lengthKnown) throws SerializationException
T
- the generic typeconnectionHandler
- the connection handlerbuffer
- the buffertype
- the typelengthKnown
- the length known
SerializationException
- the serialization exceptionpublic void setCanBeNull(boolean canBeNull)
canBeNull
- the new can be nullpublic final void writeObject(ConnectionHandler connectionHandler, java.lang.Object object, java.nio.ByteBuffer buffer) throws SerializationException
connectionHandler
- the connection handlerobject
- the objectbuffer
- the buffer
SerializationException
- the serialization exceptionpublic abstract void writeObjectData(ConnectionHandler connectionHandler, java.nio.ByteBuffer buffer, java.lang.Object object, boolean lengthKnown) throws SerializationException
connectionHandler
- the connection handlerbuffer
- the bufferobject
- the objectlengthKnown
- the length known
SerializationException
- the serialization exceptionpublic void writeObjectData(ConnectionHandler connectionHandler, java.lang.Object object, java.nio.ByteBuffer buffer) throws SerializationException
connectionHandler
- the connection handlerobject
- the objectbuffer
- the buffer
SerializationException
- the serialization exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |