public class XmlDecoder extends ByteToMessageDecoder
ByteToMessageDecoder.CumulatorChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private com.fasterxml.aalto.AsyncByteArrayFeeder |
streamFeeder |
private com.fasterxml.aalto.AsyncXMLStreamReader<com.fasterxml.aalto.AsyncByteArrayFeeder> |
streamReader |
private static XmlDocumentEnd |
XML_DOCUMENT_END |
private static com.fasterxml.aalto.AsyncXMLInputFactory |
XML_INPUT_FACTORY |
COMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
XmlDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext ctx,
ByteBuf in,
java.util.List<java.lang.Object> out)
Decode the from one
ByteBuf to an other. |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedprivate static final com.fasterxml.aalto.AsyncXMLInputFactory XML_INPUT_FACTORY
private static final XmlDocumentEnd XML_DOCUMENT_END
private final com.fasterxml.aalto.AsyncXMLStreamReader<com.fasterxml.aalto.AsyncByteArrayFeeder> streamReader
private final com.fasterxml.aalto.AsyncByteArrayFeeder streamFeeder
protected void decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out) throws java.lang.Exception
ByteToMessageDecoderByteBuf to an other. This method will be called till either the input
ByteBuf has nothing to read when return from this method or till nothing was read from the input
ByteBuf.decode in class ByteToMessageDecoderctx - the ChannelHandlerContext which this ByteToMessageDecoder belongs toin - the ByteBuf from which to read dataout - the List to which decoded messages should be addedjava.lang.Exception - is thrown if an error occurs