public class NettyStreamImapRequestLineReader extends AbstractNettyImapRequestLineReader
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 |
---|
NettyStreamImapRequestLineReader(org.jboss.netty.channel.Channel channel,
InputStream in,
boolean retry) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
char |
nextChar()
Reads the next character in the current line.
|
InputStream |
read(int size,
boolean extraCRLF)
Reads and consumes a number of characters from the underlying reader,
filling the char array provided.
|
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 NettyStreamImapRequestLineReader(org.jboss.netty.channel.Channel channel, InputStream in, boolean retry)
public char nextChar() throws org.apache.james.protocols.imap.DecodingException
ImapRequestLineReader.consume()
method is
called.nextChar
in class org.apache.james.imap.decode.ImapRequestLineReader
org.apache.james.protocols.imap.DecodingException
- If the end-of-stream is reached.public InputStream read(int size, boolean extraCRLF) throws org.apache.james.protocols.imap.DecodingException
read
in class org.apache.james.imap.decode.ImapRequestLineReader
size
- number of characters to read and consumeextraCRLF
- Add extra CRLForg.apache.james.protocols.imap.DecodingException
- If a char can't be read into each array element.public void dispose() throws IOException
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.