SASAX API - 1.5

jp.ne.dti.lares.foozy.sasax.glue
Interface DateTimeFormat.Parser

All Known Implementing Classes:
DateTimeFormat.LetterParser, DateTimeFormat.DigitParser, DateTimeFormat.VarDigitParser, DateTimeFormat.ParserSelecter, DateTimeFormat.ParserWrap, DateTimeFormat.UTCParser
Enclosing class:
DateTimeFormat

public static interface DateTimeFormat.Parser

Interface of date time information parser.

This works as parsing state object in date time information parsing.

This is re-designed between SASAX 1.2 and 1.3.

Author:
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)

Method Summary
 boolean accepts(char c)
          Examine whether specified character is acceptable or not.
 DateTimeFormat.Parser parse(DateTimeInfo info, char c)
          Parse specified character.
 

Method Detail

accepts

public boolean accepts(char c)
Examine whether specified character is acceptable or not.

This method is only for choice one parser from multiple candidates before delegation of parse(DateTimeInfo, char) invocation.

Parameters:
c - examination target character
Returns:
true if specified character is acceptable, otherwise false.

parse

public DateTimeFormat.Parser parse(DateTimeInfo info,
                                   char c)
Parse specified character.
Parameters:
info - where parsing result is stored
c - parsing target character
Returns:
parser to parse next character

SASAX API - 1.5