MessageToByteEncoder implementation which uses JBoss Marshalling to marshal
an Object.
See JBoss Marshalling website
for more information
Use MarshallingEncoder if possible.
| Modifier and Type | Field and Description |
|---|---|
| private final MarshallerProvider |
| Access | Constructor and Description |
|---|---|
| public | CompatibleMarshallingEncoder(MarshallerProvider provider)
Create a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| protected void | encode(ChannelHandlerContext
the ctx, Object ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to encode msg, ByteBuf the out)ByteBuf into which the encoded message will be writtenImplements abstract io. ByteBuf.
|
| provider | back to summary |
|---|---|
| private final MarshallerProvider provider | |
| CompatibleMarshallingEncoder | back to summary |
|---|---|
| public CompatibleMarshallingEncoder(MarshallerProvider provider) Create a new instance of the
| |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) throws Exception Implements abstract io. Doc from io. Encode a message into a
| |