interface InternalParser
This has been separated from DateTimeParser
to change to using
CharSequence
.
Modifier and Type | Method and Description |
---|---|
int |
estimateParsedLength()
Returns the expected maximum number of characters consumed.
|
int |
parseInto(DateTimeParserBucket bucket,
java.lang.CharSequence text,
int position)
Parse an element from the given text, saving any fields into the given
DateTimeParserBucket.
|
int estimateParsedLength()
int parseInto(DateTimeParserBucket bucket, java.lang.CharSequence text, int position)
If it fails, the return value is negative. To determine the position where the parse failed, apply the one's complement operator (~) on the return value.
bucket
- field are saved into this, not nulltext
- the text to parse, not nullposition
- position to start parsing fromjava.lang.IllegalArgumentException
- if any field is out of range