SASAX API - 1.5

jp.ne.dti.lares.foozy.sasax.glue
Class DateTimeFormat.UTCParser

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.sasax.glue.DateTimeFormat.UTCParser
All Implemented Interfaces:
DateTimeFormat.Parser
Enclosing class:
DateTimeFormat

public static class DateTimeFormat.UTCParser
extends java.lang.Object
implements DateTimeFormat.Parser

Parser for 'Z' as UTC time zone.

This sets ZONE_OFFSET value.

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

Constructor Summary
DateTimeFormat.UTCParser(DateTimeFormat.Parser next)
          Constructor.
 
Method Summary
 boolean accepts(char c)
          Examine whether specified character is acceptable or not.
 DateTimeFormat.Parser parse(DateTimeInfo info, char c)
          Parse specified character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeFormat.UTCParser

public DateTimeFormat.UTCParser(DateTimeFormat.Parser next)
Constructor.
Parameters:
next - parser for string after time zone part.
Method Detail

accepts

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

This returns true when specified character is 'Z'.

Specified by:
accepts in interface DateTimeFormat.Parser
Following copied from interface: jp.ne.dti.lares.foozy.sasax.glue.DateTimeFormat.Parser
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.

When specified character is acceptable one(= 'Z'), this sets zone offset value of info to '0', and returns NEXT.

Specified by:
parse in interface DateTimeFormat.Parser
Following copied from interface: jp.ne.dti.lares.foozy.sasax.glue.DateTimeFormat.Parser
Parameters:
info - where parsing result is stored
c - parsing target character
Returns:
parser to parse next character

SASAX API - 1.5