public class SerializerMessageProtocol extends java.lang.Object implements MessageProtocol
The protocol is based on a simple length + data format where two bytes represent the (short) length of the data and the rest is the raw data for the Serializers class.
| Constructor and Description | 
|---|
| SerializerMessageProtocol() | 
| Modifier and Type | Method and Description | 
|---|---|
| MessageBuffer | createBuffer() | 
| java.nio.ByteBuffer | toByteBuffer(Message message,
            java.nio.ByteBuffer target)Converts a message to a ByteBuffer using the com.jme3.network.serializing.Serializer
  and the (short length) + data protocol. | 
| Message | toMessage(java.nio.ByteBuffer bytes)Creates and returns a message from the properly sized byte buffer
  using com.jme3.network.serializing.Serializer. | 
public java.nio.ByteBuffer toByteBuffer(Message message, java.nio.ByteBuffer target)
toByteBuffer in interface MessageProtocolpublic Message toMessage(java.nio.ByteBuffer bytes)
toMessage in interface MessageProtocolpublic MessageBuffer createBuffer()
createBuffer in interface MessageProtocol