public class NettyImapRequestLineReader extends AbstractNettyImapRequestLineReader
ImapRequestLineReader
implementation which will write to a
Channel
and read from a ChannelBuffer
. Please see the docs on
nextChar()
and read(int, boolean)
to understand the special behavior
of this implementationModifier and Type | Class and Description |
---|---|
class |
NettyImapRequestLineReader.NotEnoughDataException
RuntimeException which will get thrown by
nextChar() and
read(int, boolean) if not enough data is
readable in the underlying ChannelBuffer |
org.apache.james.imap.decode.ImapRequestLineReader.ATOM_CHARValidator, org.apache.james.imap.decode.ImapRequestLineReader.CharacterValidator, org.apache.james.imap.decode.ImapRequestLineReader.MessageSetCharValidator, org.apache.james.imap.decode.ImapRequestLineReader.NoopCharValidator, org.apache.james.imap.decode.ImapRequestLineReader.TagCharValidator
Constructor and Description |
---|
NettyImapRequestLineReader(org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
boolean retry,
int maxLiteralSize) |
Modifier and Type | Method and Description |
---|---|
char |
nextChar()
Return the next char to read.
|
InputStream |
read(int size,
boolean extraCRLF)
Return a
ChannelBufferInputStream if the wrapped
ChannelBuffer contains enough data. |
commandContinuationRequest
astring, astring, atom, cap, consume, consumeChar, consumeLine, consumeLiteral, consumeLiteral, consumeQuoted, consumeQuoted, consumeWord, date, dateTime, eol, flag, flagList, isCHAR, isListWildcard, isQuotedSpecial, mailbox, mailboxUTF7, nextWordChar, nstring, number, number, nzNumber, parseIdRange, parseIdRange, tag
public NettyImapRequestLineReader(org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, boolean retry, int maxLiteralSize)
public char nextChar() throws org.apache.james.protocols.imap.DecodingException
ImapRequestLineReader.consume()
was called.
This implementation will throw a NettyImapRequestLineReader.NotEnoughDataException
if the
wrapped ChannelBuffer
contains not enough data to read the next
charnextChar
in class org.apache.james.imap.decode.ImapRequestLineReader
org.apache.james.protocols.imap.DecodingException
public InputStream read(int size, boolean extraCRLF) throws org.apache.james.protocols.imap.DecodingException
ChannelBufferInputStream
if the wrapped
ChannelBuffer
contains enough data. If not it will throw a
NettyImapRequestLineReader.NotEnoughDataException
read
in class org.apache.james.imap.decode.ImapRequestLineReader
org.apache.james.protocols.imap.DecodingException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.