@UnstableApi public final class SmtpResponseDecoder extends LineBasedFrameDecoder
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
Constructor and Description |
---|
SmtpResponseDecoder(int maxLineLength)
创建一个强制执行给定的
maxLineLength 的新实例。
|
Modifier and Type | Method and Description |
---|---|
protected SmtpResponse |
decode(ChannelHandlerContext ctx, ByteBuf buffer)
从 ByteBuf 中创建一个框架并将其返回。
|
decode
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded
public 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.