Deprecated
This class has been deprecated with no replacement, because serialization can be a security liability
ByteBuf.
Please note that the serialized form this encoder produces is not
compatible with the standard ObjectInputStream. Please use
ObjectDecoder or ObjectDecoderInputStream to ensure the
interoperability with this encoder.
Security: serialization can be a security liability, and should not be used without defining a list of classes that are allowed to be desirialized. Such a list can be specified with the jdk.serialFilter system property, for instance. See the serialization filtering article for more information.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | encode(ChannelHandlerContext
the ctx, Serializable 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.
|
| LENGTH_PLACEHOLDER | back to summary |
|---|---|
| private static final byte[] LENGTH_PLACEHOLDER | |
| ObjectEncoder | back to summary |
|---|---|
| public ObjectEncoder() | |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, Serializable msg, ByteBuf out) throws Exception Implements abstract io. Doc from io. Encode a message into a
| |