public static class RpcDispatcher.MarshallerAdapter extends java.lang.Object implements RpcDispatcher.Marshaller2
| Constructor and Description |
|---|
RpcDispatcher.MarshallerAdapter(RpcDispatcher.Marshaller marshaller) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
objectFromByteBuffer(byte[] buf) |
java.lang.Object |
objectFromByteBuffer(byte[] buf,
int offset,
int length) |
Buffer |
objectToBuffer(java.lang.Object obj)
Marshals the object into a byte[] buffer and returns a Buffer with a ref to the underlying byte[] buffer,
offset and length.
Note that the underlying byte[] buffer must not be changed as this would change the buffer of a message which potentially can get retransmitted, and such a retransmission would then carry a ref to a changed byte[] buffer ! |
byte[] |
objectToByteBuffer(java.lang.Object obj) |
public RpcDispatcher.MarshallerAdapter(RpcDispatcher.Marshaller marshaller)
public byte[] objectToByteBuffer(java.lang.Object obj)
throws java.lang.Exception
objectToByteBuffer in interface RpcDispatcher.Marshallerjava.lang.Exceptionpublic java.lang.Object objectFromByteBuffer(byte[] buf)
throws java.lang.Exception
objectFromByteBuffer in interface RpcDispatcher.Marshallerjava.lang.Exceptionpublic Buffer objectToBuffer(java.lang.Object obj) throws java.lang.Exception
RpcDispatcher.Marshaller2objectToBuffer in interface RpcDispatcher.Marshaller2java.lang.Exceptionpublic java.lang.Object objectFromByteBuffer(byte[] buf,
int offset,
int length)
throws java.lang.Exception
objectFromByteBuffer in interface RpcDispatcher.Marshaller2java.lang.ExceptionCopyright ? 1998-2008 Bela Ban. All Rights Reserved.