org.apache.james.mime4j.field.datetime.parser
Class DateTimeParser
java.lang.Object
org.apache.james.mime4j.field.datetime.parser.DateTimeParser
- All Implemented Interfaces:
- DateTimeParserConstants
public class DateTimeParser
- extends java.lang.Object
- implements DateTimeParserConstants
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public DateTimeParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
DateTimeParser
public DateTimeParser(java.io.InputStream stream)
DateTimeParser
public DateTimeParser(java.io.InputStream stream,
java.lang.String encoding)
DateTimeParser
public DateTimeParser(java.io.Reader stream)
DateTimeParser
public DateTimeParser(DateTimeParserTokenManager tm)
main
public static void main(java.lang.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 java.lang.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 java.lang.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(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(DateTimeParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.