public class MarshallerAdapter extends Object implements RpcDispatcher.Marshaller
| Constructor and Description |
|---|
MarshallerAdapter(StreamingMarshaller m) |
| Modifier and Type | Method and Description |
|---|---|
Object |
objectFromBuffer(byte[] buf,
int offset,
int length) |
Buffer |
objectToBuffer(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 ! |
public MarshallerAdapter(StreamingMarshaller m)
public Buffer objectToBuffer(Object obj) throws Exception
RpcDispatcher.MarshallerobjectToBuffer in interface RpcDispatcher.MarshallerExceptionpublic Object objectFromBuffer(byte[] buf, int offset, int length) throws Exception
objectFromBuffer in interface RpcDispatcher.MarshallerExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.