The method attempts to parse text starting at the index given by pos
. If parsing succeeds, then the index of pos
is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed object array is returned. The updated pos
can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos
is not changed, the error index of pos
is set to the index of the character where the error occurred, and null is returned.
See the {@link #parse(String,ParsePosition)} method for more informationon message parsing.
@param source A String
, part of which should be parsed.
@param pos A ParsePosition
object with index and errorindex information as described above.
@return An Object
array parsed from the string. In case oferror, returns null.
@exception NullPointerException if pos
is null.
@stable ICU 3.0
Date
. The method attempts to parse text starting at the index given by pos
. If parsing succeeds, then the index of pos
is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed date is returned. The updated pos
can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos
is not changed, the error index of pos
is set to the index of the character where the error occurred, and null is returned.
See the {@link #parse(String,ParsePosition)} method for more informationon date parsing.
@param source A String
, part of which should be parsed.
@param pos A ParsePosition
object with index and errorindex information as described above.
@return A Date
parsed from the string. In case oferror, returns null.
@exception NullPointerException if pos
is null.
The method attempts to parse text starting at the index given by pos
. If parsing succeeds, then the index of pos
is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed object is returned. The updated pos
can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos
is not changed, the error index of pos
is set to the index of the character where the error occurred, and null is returned.
@param source A String
, part of which should be parsed.
@param pos A ParsePosition
object with index and errorindex information as described above.
@return An Object
parsed from the string. In case oferror, returns null.
@exception NullPointerException if pos
is null.
Number
. The method attempts to parse text starting at the index given by pos
. If parsing succeeds, then the index of pos
is updated to the index after the last character used (parsing does not necessarily use all characters up to the end of the string), and the parsed number is returned. The updated pos
can be used to indicate the starting point for the next call to this method. If an error occurs, then the index of pos
is not changed, the error index of pos
is set to the index of the character where the error occurred, and null is returned.
See the {@link #parse(String,ParsePosition)} method for more informationon number parsing.
@param source A String
, part of which should be parsed.
@param pos A ParsePosition
object with index and errorindex information as described above.
@return A Number
parsed from the string. In case oferror, returns null.
@exception NullPointerException if pos
is null.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|