|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AtomDateParser
Parses ATOM dates according to RFC 4287:
Such date values happen to be compatible with the following specifications: [ISO.8601.1988], [W3C.NOTE-datetime-19980827], and [W3C.REC-xmlschema-2-20041028]. Example Date constructs:
<updated>2003-12-13T18:30:02Z</updated> <updated>2003-12-13T18:30:02.25Z</updated> <updated>2003-12-13T18:30:02+01:00</updated> <updated>2003-12-13T18:30:02.25+01:00</updated>Date values SHOULD be as accurate as possible. For example, it would be generally inappropriate for a publishing system to apply the same timestamp to several entries that were published during the course of a single day.
Method Summary | |
---|---|
void |
characters(char[] ch,
int off,
int len)
Sends the next chunk of data to the parser |
void |
characters(java.lang.CharSequence ch,
int off,
int len)
Sends the next chunk of data to the parser |
void |
characters(java.lang.String ch,
int off,
int len)
Sends the next chunk of data to the parser |
java.util.Date |
finish()
Finishes the parsing process and returns the parsed date. |
void |
reset()
initializes the parser to parse a new date |
Method Detail |
---|
void reset()
void characters(char[] ch, int off, int len)
ch
- date bufferoff
- offset into the bufferlen
- length of the buffervoid characters(java.lang.String ch, int off, int len)
ch
- date bufferoff
- offset into the bufferlen
- length of the buffervoid characters(java.lang.CharSequence ch, int off, int len)
ch
- date bufferoff
- offset into the bufferlen
- length of the bufferjava.util.Date finish() throws java.io.IOException
reset()
method
java.io.IOException
- if the date format is incorrect
java.lang.NumberFormatException
- if the date contains non-digit characters at positions
where characters would be expected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |