public class DateTimeParser extends Object implements DateTimeParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
DateTimeParserTokenManager |
token_source
Generated Token Manager.
|
ANY, COMMENT, DEFAULT, DIGITS, EOF, INCOMMENT, MILITARY_ZONE, NESTED_COMMENT, OFFSETDIR, QUOTEDPAIR, tokenImage, WS
Constructor and Description |
---|
DateTimeParser(DateTimeParserTokenManager tm)
Constructor with generated Token Manager.
|
DateTimeParser(InputStream stream)
Constructor with InputStream.
|
DateTimeParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
DateTimeParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DateTime |
date_time() |
org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Date |
date() |
String |
day_of_week() |
int |
day() |
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(DateTimeParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
int |
second() |
org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Time |
time() |
String |
year() |
int |
zone() |
public DateTimeParserTokenManager token_source
public Token token
public Token jj_nt
public DateTimeParser(InputStream stream)
public DateTimeParser(InputStream stream, String encoding)
public DateTimeParser(Reader stream)
public DateTimeParser(DateTimeParserTokenManager tm)
public static void main(String[] args) throws ParseException
ParseException
public final DateTime parseLine() throws ParseException
ParseException
public final DateTime parseAll() throws ParseException
ParseException
public final DateTime date_time() throws ParseException
ParseException
public final String day_of_week() throws ParseException
ParseException
public final org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Date date() throws ParseException
ParseException
public final int day() throws ParseException
ParseException
public final int month() throws ParseException
ParseException
public final String year() throws ParseException
ParseException
public final org.apache.james.mime4j.field.datetime.parser.DateTimeParser.Time time() throws ParseException
ParseException
public final int hour() throws ParseException
ParseException
public final int minute() throws ParseException
ParseException
public final int second() throws ParseException
ParseException
public final int zone() throws ParseException
ParseException
public final int obs_zone() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(DateTimeParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.