@UnstableApi public final class SmtpResponseDecoder extends LineBasedFrameDecoder
ByteToMessageDecoder.CumulatorChannelHandler.SharableCOMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
SmtpResponseDecoder(int maxLineLength)
创建一个强制执行给定的
maxLineLength的新实例。
|
| Modifier and Type | Method and Description |
|---|---|
protected SmtpResponse |
decode(ChannelHandlerContext ctx, ByteBuf buffer)
从 ByteBuf中创建一个框架并将其返回。
|
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
LineBasedFrameDecoder
ByteBuf中创建一个框架并将其返回。
decode
LineBasedFrameDecoder
ctx - 这ByteToMessageDecoder所属的ChannelHandlerContext
buffer - 从中读取数据的ByteBuf
ByteBuf或null 。
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.