class MailDateParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
index |
(package private) char[] |
orig |
Constructor and Description |
---|
MailDateParser(char[] orig,
int index) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getIndex() |
int |
parseAlphaTimeZone()
will parse the alpha time zone version (e.g.
|
int |
parseMonth()
will look for one of "Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dev"
and return the numerical version of the month.
|
int |
parseNumber()
current char must point to a number.
|
int |
parseNumericTimeZone()
will parse the Numerical time zone version (e.g.
|
int |
parseTimeZone()
will parse the timezone - either Numerical version (e.g.
|
int |
peekChar()
used to look at the next character without "parsing" that
character.
|
void |
skipChar(char c)
skips the given character.
|
boolean |
skipIfChar(char c)
will only skip the current char if it matches the given
char
|
void |
skipUntilNumber()
skips chars until it finds a number (0-9)
if it does not find a number, it will throw
an ArrayIndexOutOfBoundsException
|
void |
skipWhiteSpace()
skips any number of tabs, spaces, CR, and LF - folding whitespace
|
public void skipUntilNumber() throws java.text.ParseException
java.text.ParseException
public void skipWhiteSpace()
public int peekChar() throws java.text.ParseException
java.text.ParseException
public void skipChar(char c) throws java.text.ParseException
java.text.ParseException
public boolean skipIfChar(char c) throws java.text.ParseException
java.text.ParseException
public int parseNumber() throws java.text.ParseException
java.text.ParseException
public int parseMonth() throws java.text.ParseException
java.text.ParseException
public int parseTimeZone() throws java.text.ParseException
java.text.ParseException
public int parseNumericTimeZone() throws java.text.ParseException
java.text.ParseException
public int parseAlphaTimeZone() throws java.text.ParseException
java.text.ParseException
int getIndex()