|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.imap.util.IMAPScanner
public class IMAPScanner
A class implementing a lexical scanner for an IMAP server.
Nested Class Summary | |
---|---|
static class |
IMAPScanner.Number
|
Field Summary | |
---|---|
protected char[] |
buffer
Buffer |
protected boolean |
eol
Have we reached EOL |
protected InputStream |
in
Input stream |
protected boolean |
literal
Is literal recognised |
protected OutputStream |
out
Output stream |
protected int |
ptr
Current pointer |
Constructor Summary | |
---|---|
IMAPScanner(InputStream in,
OutputStream out)
Constructor |
Method Summary | |
---|---|
protected boolean |
astring_char(char c)
|
boolean |
astring(StringBuffer buffer)
|
protected boolean |
atom_char(char c)
|
boolean |
atom(StringBuffer buffer)
|
void |
check_eol()
|
boolean |
date_day_fixed(IMAPScanner.Number num)
|
boolean |
date_day(IMAPScanner.Number num)
|
boolean |
date_month(IMAPScanner.Number num)
|
boolean |
date_text(GregorianCalendar calendar)
|
boolean |
date_time(GregorianCalendar calendar)
|
boolean |
date(GregorianCalendar calendar)
|
protected boolean |
digit_nz(char c)
|
protected boolean |
digit(char c)
|
boolean |
flag_list(javax.mail.Flags fs)
|
boolean |
flag(javax.mail.Flags flags)
|
boolean |
four_digit(IMAPScanner.Number num)
|
boolean |
header_list(List<String> list)
|
boolean |
is_char(char r)
|
boolean |
keyword(String keyword)
|
protected boolean |
list_char(char c)
|
boolean |
list_mailbox(StringBuffer buffer)
|
boolean |
literal(StringBuffer literal)
|
boolean |
mailbox(StringBuffer mailbox)
|
boolean |
number(IMAPScanner.Number num)
|
boolean |
nz_number(IMAPScanner.Number num)
|
boolean |
peek_char(char r)
|
boolean |
quoted(StringBuffer quoted)
|
long |
raw_literal()
|
boolean |
readBase64Line(StringBuffer line)
|
boolean |
section_msgtext(PointerSection section)
|
int |
section_part(PointerSection section)
|
boolean |
section_text(PointerSection section)
|
boolean |
section(PointerSection section)
|
boolean |
seq_range(SimpleSequence sequence)
|
boolean |
sequence_set(ComposedSequence sequence)
|
void |
skip_line()
|
boolean |
string(StringBuffer buffer)
|
boolean |
tag(StringBuffer res)
|
protected boolean |
text_char(char c)
|
boolean |
time(IMAPScanner.Number hour,
IMAPScanner.Number min,
IMAPScanner.Number sec)
|
boolean |
two_digit(IMAPScanner.Number num)
|
boolean |
zone(StringBuffer zone)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InputStream in
protected OutputStream out
protected char[] buffer
protected boolean literal
protected int ptr
protected boolean eol
Constructor Detail |
---|
public IMAPScanner(InputStream in, OutputStream out)
in
- input streamout
- output streamMethod Detail |
---|
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)
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(IMAPScanner.Number num) throws IOException
IOException
public boolean nz_number(IMAPScanner.Number num) throws IOException
IOException
public boolean tag(StringBuffer res) throws IOException
IOException
public boolean keyword(String keyword) throws IOException
IOException
public boolean quoted(StringBuffer quoted) throws IOException, ParserException
IOException
ParserException
public boolean literal(StringBuffer literal) throws IOException, ParserException
IOException
ParserException
public long raw_literal() throws IOException, ParserException
IOException
ParserException
public boolean string(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean atom(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean astring(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean readBase64Line(StringBuffer line) throws IOException, ParserException
IOException
ParserException
public boolean list_mailbox(StringBuffer buffer) throws IOException, ParserException
IOException
ParserException
public boolean sequence_set(ComposedSequence sequence) throws IOException, ParserException
IOException
ParserException
public boolean seq_range(SimpleSequence sequence) throws IOException, ParserException
IOException
ParserException
public boolean section(PointerSection section) throws IOException, ParserException
IOException
ParserException
public int section_part(PointerSection section) throws IOException, ParserException
IOException
ParserException
public boolean section_text(PointerSection section) throws IOException, ParserException
IOException
ParserException
public boolean section_msgtext(PointerSection section) throws IOException, ParserException
IOException
ParserException
public boolean header_list(List<String> list) throws IOException, ParserException
IOException
ParserException
public boolean mailbox(StringBuffer mailbox) throws IOException, ParserException
IOException
ParserException
public boolean flag(javax.mail.Flags flags) throws IOException, ParserException
IOException
ParserException
public boolean flag_list(javax.mail.Flags fs) throws IOException, ParserException
IOException
ParserException
public boolean date_day_fixed(IMAPScanner.Number num) throws IOException, ParserException
IOException
ParserException
public boolean date_day(IMAPScanner.Number num) throws IOException, ParserException
IOException
ParserException
public boolean date_month(IMAPScanner.Number num) throws IOException, ParserException
IOException
ParserException
public boolean four_digit(IMAPScanner.Number num) throws IOException, ParserException
IOException
ParserException
public boolean two_digit(IMAPScanner.Number num) throws IOException, ParserException
IOException
ParserException
public boolean time(IMAPScanner.Number hour, IMAPScanner.Number min, IMAPScanner.Number sec) throws IOException, ParserException
IOException
ParserException
public boolean zone(StringBuffer zone) throws IOException, ParserException
IOException
ParserException
public boolean date_time(GregorianCalendar calendar) throws IOException, ParserException
IOException
ParserException
public boolean date_text(GregorianCalendar calendar) throws IOException, ParserException
IOException
ParserException
public boolean date(GregorianCalendar calendar) throws IOException, ParserException
IOException
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |