@UnstableApi public final class SmtpResponseDecoder extends LineBasedFrameDecoder
ByteToMessageDecoder.CumulatorChannelHandler.SharableCOMPOSITE_CUMULATOR, MERGE_CUMULATOR| 构造器和说明 |
|---|
SmtpResponseDecoder(int maxLineLength)
Creates a new instance that enforces the given
maxLineLength. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected SmtpResponse |
decode(ChannelHandlerContext ctx,
ByteBuf buffer)
Create a frame out of the
ByteBuf and return it. |
decodeactualReadableBytes, 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, waithandlerAddedpublic SmtpResponseDecoder(int maxLineLength)
maxLineLength.protected SmtpResponse decode(ChannelHandlerContext ctx, ByteBuf buffer) throws java.lang.Exception
LineBasedFrameDecoderByteBuf and return it.decode 在类中 LineBasedFrameDecoderctx - the ChannelHandlerContext which this ByteToMessageDecoder belongs tobuffer - the ByteBuf from which to read dataByteBuf which represent the frame or null if no frame could
be created.java.lang.Exception