Class DateTimeParser
- java.lang.Object
-
- org.apache.james.mime4j.field.datetime.parser.DateTimeParser
-
- All Implemented Interfaces:
DateTimeParserConstants
public class DateTimeParser extends Object implements DateTimeParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.DateTimeParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.apache.james.mime4j.field.datetime.parser.DateTimeParserConstants
ANY, COMMENT, DEFAULT, DIGITS, EOF, INCOMMENT, MILITARY_ZONE, NESTED_COMMENT, OFFSETDIR, QUOTEDPAIR, tokenImage, WS
-
-
Constructor Summary
Constructors Constructor Description DateTimeParser(InputStream stream)
Constructor with InputStream.DateTimeParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingDateTimeParser(Reader stream)
Constructor.DateTimeParser(DateTimeParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Date
date()
DateTime
date_time()
int
day()
String
day_of_week()
void
disable_tracing()
Disable tracing.void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Get the next Token.Token
getToken(int index)
Get the specific Token.int
hour()
static void
main(String[] args)
int
minute()
int
month()
int
obs_zone()
DateTime
parseAll()
DateTime
parseLine()
void
ReInit(InputStream stream)
Reinitialise.void
ReInit(InputStream stream, String encoding)
Reinitialise.void
ReInit(Reader stream)
Reinitialise.void
ReInit(DateTimeParserTokenManager tm)
Reinitialise.int
second()
org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Time
time()
boolean
trace_enabled()
Trace enabled.String
year()
int
zone()
-
-
-
Field Detail
-
token_source
public DateTimeParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
DateTimeParser
public DateTimeParser(InputStream stream)
Constructor with InputStream.
-
DateTimeParser
public DateTimeParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
DateTimeParser
public DateTimeParser(Reader stream)
Constructor.
-
DateTimeParser
public DateTimeParser(DateTimeParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
main
public static void main(String[] args) throws ParseException
- Throws:
ParseException
-
parseLine
public final DateTime parseLine() throws ParseException
- Throws:
ParseException
-
parseAll
public final DateTime parseAll() throws ParseException
- Throws:
ParseException
-
date_time
public final DateTime date_time() throws ParseException
- Throws:
ParseException
-
day_of_week
public final String day_of_week() throws ParseException
- Throws:
ParseException
-
date
public final org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Date date() throws ParseException
- Throws:
ParseException
-
day
public final int day() throws ParseException
- Throws:
ParseException
-
month
public final int month() throws ParseException
- Throws:
ParseException
-
year
public final String year() throws ParseException
- Throws:
ParseException
-
time
public final org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Time time() throws ParseException
- Throws:
ParseException
-
hour
public final int hour() throws ParseException
- Throws:
ParseException
-
minute
public final int minute() throws ParseException
- Throws:
ParseException
-
second
public final int second() throws ParseException
- Throws:
ParseException
-
zone
public final int zone() throws ParseException
- Throws:
ParseException
-
obs_zone
public final int obs_zone() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(DateTimeParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-