| java.lang.Object org.apache.derby.iapi.types.DateTimeParser
DateTimeParser | class DateTimeParser (Code) | | This class provides a simple regular expression parser for standard format dates, times, and timestamps
|
Method Summary | |
String | checkEnd() Check that we are at the end of the string: that the rest of the characters, if any, are blanks. | char | getCurrentSeparator() | String | getTrimmedString() Get the parsed string with trailing blanks removed. | char | nextSeparator() | int | parseChoice(String[] choices) Determine if the next characters are one of a choice of strings.
Parameters: choices - An array of strings. | int | parseInt(int maxDigits, boolean truncationAllowed, char[] separator, boolean isFraction) Parse the next integer.
Parameters: maxDigits - the maximum number of digits Parameters: truncationAllowed - If true then leading zeroes may be ommitted. |
checkEnd | String checkEnd() throws StandardException(Code) | | Check that we are at the end of the string: that the rest of the characters, if any, are blanks.
the original string with trailing blanks trimmed off. exception: StandardException - if there are more non-blank characters. |
getCurrentSeparator | char getCurrentSeparator()(Code) | | the separator between the last parsed integer and the next integer, 0 if the parser is atthe end of the string. |
getTrimmedString | String getTrimmedString()(Code) | | Get the parsed string with trailing blanks removed. This method is only valid after checkEnd
has been called.
The string with trailing blanks removed. |
nextSeparator | char nextSeparator()(Code) | | the next separator, 0 if there are none |
parseChoice | int parseChoice(String[] choices) throws StandardException(Code) | | Determine if the next characters are one of a choice of strings.
Parameters: choices - An array of strings. An index in choices. exception: StandardException - if the next characters are not in choices. |
parseInt | int parseInt(int maxDigits, boolean truncationAllowed, char[] separator, boolean isFraction) throws StandardException(Code) | | Parse the next integer.
Parameters: maxDigits - the maximum number of digits Parameters: truncationAllowed - If true then leading zeroes may be ommitted. If false then the integer must beexactly ndigits long. Parameters: separator - The separator at the end of the integer. If zero then the integer must be at the end of the stringbut may be followed by spaces. Parameters: isFraction - If true then the returned integer will be multiplied by 10**(maxDigits - actualDigitCount) the integer. exception: StandardException - invalid syntax. |
|
|