|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.services.net.objectmessaging.Network
public class Network
The Class Network.
Nested Class Summary | |
---|---|
static class |
Network.RegisteredClass
The Class RegisteredClass. |
Constructor Summary | |
---|---|
Network()
|
Method Summary | |
---|---|
static Network.RegisteredClass |
getRegisteredClass(java.lang.Class<?> type)
Gets the registered class. |
static Network.RegisteredClass |
getRegisteredClass(short classID)
Gets the registered class. |
static java.util.HashMap<java.lang.Short,Network.RegisteredClass> |
getRegisteredClasses()
Gets the registered classes. |
static Network.RegisteredClass |
readClass(java.nio.ByteBuffer buffer)
Read class. |
static java.lang.Object |
readClassAndObject(ConnectionHandler connectionHandler,
java.nio.ByteBuffer readBuffer)
Read class and object. |
static java.lang.Object |
readClassAndObject(ConnectionHandler connectionHandler,
java.nio.ByteBuffer readBuffer,
boolean lengthKnown)
Read class and object. |
static void |
register(java.lang.Class<?> type)
Register. |
static void |
register(java.lang.Class<?> type,
Serializer serializer)
Register. |
static Network.RegisteredClass |
writeClass(java.lang.Class<?> type,
java.nio.ByteBuffer buffer)
Write class. |
static void |
writeClassAndObject(ConnectionHandler connectionHandler,
java.lang.Object object,
java.nio.ByteBuffer writeBuffer)
Write class and object. |
static void |
writeClassAndObject(ConnectionHandler connectionHandler,
java.lang.Object object,
java.nio.ByteBuffer writeBuffer,
boolean lengthKnown)
Write class and object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Network()
Method Detail |
---|
public static Network.RegisteredClass getRegisteredClass(java.lang.Class<?> type)
type
- the type
public static Network.RegisteredClass getRegisteredClass(short classID)
classID
- the class id
public static java.util.HashMap<java.lang.Short,Network.RegisteredClass> getRegisteredClasses()
public static Network.RegisteredClass readClass(java.nio.ByteBuffer buffer) throws SerializationException
buffer
- the buffer
SerializationException
- the serialization exceptionpublic static java.lang.Object readClassAndObject(ConnectionHandler connectionHandler, java.nio.ByteBuffer readBuffer) throws SerializationException
connectionHandler
- the connection handlerreadBuffer
- the read buffer
SerializationException
- the serialization exceptionpublic static java.lang.Object readClassAndObject(ConnectionHandler connectionHandler, java.nio.ByteBuffer readBuffer, boolean lengthKnown) throws SerializationException
connectionHandler
- the connection handlerreadBuffer
- the read bufferlengthKnown
- the length known
SerializationException
- the serialization exceptionpublic static void register(java.lang.Class<?> type)
type
- the typepublic static void register(java.lang.Class<?> type, Serializer serializer)
type
- the typeserializer
- the serializerpublic static Network.RegisteredClass writeClass(java.lang.Class<?> type, java.nio.ByteBuffer buffer) throws SerializationException
type
- the typebuffer
- the buffer
SerializationException
- the serialization exceptionpublic static void writeClassAndObject(ConnectionHandler connectionHandler, java.lang.Object object, java.nio.ByteBuffer writeBuffer) throws SerializationException
connectionHandler
- the connection handlerobject
- the objectwriteBuffer
- the write buffer
SerializationException
- the serialization exceptionpublic static void writeClassAndObject(ConnectionHandler connectionHandler, java.lang.Object object, java.nio.ByteBuffer writeBuffer, boolean lengthKnown) throws SerializationException
connectionHandler
- the connection handlerobject
- the objectwriteBuffer
- the write bufferlengthKnown
- the length known
SerializationException
- the serialization exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |