public class PreciseCalendarParser extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
vidx |
Modifier and Type | Method and Description |
---|---|
void |
parse() |
static BigDateTimeValueType |
parse(String format,
String value) |
protected BigInteger |
parseBigInteger(int minDigits,
int maxDigits)
Parses the digits from vidx into a
BigInteger . |
protected void |
parseFractionSeconds() |
protected int |
parseInt(int minDigits,
int maxDigits) |
protected void |
setDay(int i) |
protected void |
setHours(int i) |
protected void |
setMinutes(int i) |
protected void |
setMonth(int i) |
protected void |
setSeconds(int i) |
protected void |
setTimeZone(TimeZone tz) |
protected void |
setYear(int i) |
protected void |
skipDigits()
Skips the extra digits.
|
public static BigDateTimeValueType parse(String format, String value) throws IllegalArgumentException
IllegalArgumentException
protected void parseFractionSeconds()
protected void setTimeZone(TimeZone tz)
protected void setSeconds(int i)
protected void setMinutes(int i)
protected void setHours(int i)
protected void setDay(int i)
protected void setMonth(int i)
protected void setYear(int i)
public void parse() throws IllegalArgumentException
IllegalArgumentException
protected final void skipDigits()
protected final int parseInt(int minDigits, int maxDigits) throws IllegalArgumentException
IllegalArgumentException
protected final BigInteger parseBigInteger(int minDigits, int maxDigits) throws IllegalArgumentException
BigInteger
.
Number of digits can be obtained by comparing the difference of
vidx
.IllegalArgumentException
Copyright © 2016 Oracle Corporation. All rights reserved.