| Package | Description |
|---|---|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
ChoiceFormat.parse(String
Parses a Number from the input text.
|
Object |
MessageFormat.parse(String
Parses the string.
|
abstract Number |
NumberFormat.parse(String
Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, Long.MAX_VALUE] and with no decimals), otherwise a Double.
|
Number |
DecimalFormat.parse(String
Parses text from a string to produce a
Number.
|
abstract Date |
DateFormat.parse(String
Parse a date/time string according to the given parse position.
|
Date |
SimpleDateFormat.parse(String
Parses text from a string to produce a
Date.
|
Object |
MessageFormat.parseObject(String
Parses text from a string to produce an object array.
|
Object |
NumberFormat.parseObject(String
Parses text from a string to produce a
Number.
|
abstract Object |
Format.parseObject(String
Parses text from a string to produce an object.
|
Object |
DateFormat.parseObject(String
Parses text from a string to produce a
Date.
|
| Modifier and Type | Method and Description |
|---|---|
TemporalAccessor |
DateTimeFormatter.parse(CharSequence
Parses the text using this formatter, providing control over the text position.
|
TemporalAccessor |
DateTimeFormatter.parseUnresolved(CharSequence
Parses the text using this formatter, without resolving the result, intended for advanced use cases.
|