|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.smtp.SMTPScanner
public class SMTPScanner
A class implementing a lexical scanner for an IMAP server.
Nested Class Summary | |
---|---|
static class |
SMTPScanner.Number
|
Field Summary | |
---|---|
protected char[] |
buffer
Buffer |
protected boolean |
eol
END OF LINE is recognised |
protected InputStream |
in
Input stream |
protected boolean |
literal
Current literal |
protected int |
ptr
Current pointer |
Constructor Summary | |
---|---|
SMTPScanner(InputStream in)
Constructor |
Method Summary | |
---|---|
protected boolean |
alfa_digit(char c)
|
protected boolean |
alfa(char c)
|
protected boolean |
astring_char(char c)
|
boolean |
atDomain(StringBuffer domain)
|
protected boolean |
atom_char(char c)
|
boolean |
atom(StringBuffer buffer)
|
void |
check_eol()
|
protected boolean |
digit_nz(char c)
|
protected boolean |
digit(char c)
|
boolean |
domain(StringBuffer domain)
|
boolean |
is_char(char r)
|
boolean |
keyword(String keyword)
|
protected boolean |
ldh(char c)
|
boolean |
ldhStr(StringBuffer buffer)
|
protected boolean |
list_char(char c)
|
boolean |
localPart(StringBuffer buffer)
|
boolean |
number(SMTPScanner.Number num)
|
boolean |
nz_number(SMTPScanner.Number num)
|
boolean |
path(Path path)
|
boolean |
peek_char(char r)
|
boolean |
quoted(StringBuffer quoted)
|
char |
readChar()
|
void |
resetEOL()
Resets EOL indicator |
void |
skip_line()
|
protected boolean |
text_char(char c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InputStream in
protected char[] buffer
protected boolean literal
protected int ptr
protected boolean eol
Constructor Detail |
---|
public SMTPScanner(InputStream in)
in
- input streamMethod Detail |
---|
public void resetEOL()
protected boolean atom_char(char c)
protected boolean astring_char(char c)
protected boolean text_char(char c)
protected boolean digit_nz(char c)
protected boolean digit(char c)
protected boolean list_char(char c)
protected boolean alfa(char c)
protected boolean alfa_digit(char c)
protected boolean ldh(char c)
public char readChar() throws IOException
IOException
public void skip_line() throws IOException
IOException
public void check_eol() throws IOException, ParserException
IOException
ParserException
public boolean is_char(char r) throws IOException
IOException
public boolean peek_char(char r) throws IOException
IOException
public boolean number(SMTPScanner.Number num) throws IOException
IOException
public boolean nz_number(SMTPScanner.Number num) throws IOException
IOException
public boolean keyword(String keyword) throws IOException
IOException
public boolean quoted(StringBuffer quoted) throws IOException, ParserException
IOException
ParserException
public boolean atom(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean ldhStr(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean path(Path path) throws IOException, ParserException
IOException
ParserException
public boolean atDomain(StringBuffer domain) throws IOException, ParserException
IOException
ParserException
public boolean domain(StringBuffer domain) throws IOException, ParserException
IOException
ParserException
public boolean localPart(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |