|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.format.datetime.joda.DateTimeParser
public final class DateTimeParser
Parses Joda Time DateTime
instances using a DateTimeFormatter
.
Field Summary | |
---|---|
private DateTimeFormatter |
formatter
|
Constructor Summary | |
---|---|
DateTimeParser(DateTimeFormatter formatter)
Create a new DateTimeParser. |
Method Summary | |
---|---|
DateTime |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DateTimeFormatter formatter
Constructor Detail |
---|
public DateTimeParser(DateTimeFormatter formatter)
formatter
- the Joda DateTimeFormatter instanceMethod Detail |
---|
public DateTime parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
Parser
parse
in interface Parser<DateTime>
text
- the text stringlocale
- the current user locale
java.text.ParseException
- when a parse exception occurs in a java.text parsing library
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |