class FallbackDateParser extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
activeDateParser |
private java.util.List<java.text.DateFormat> |
dateParsers |
private static java.lang.String[] |
formats |
Constructor and Description |
---|
FallbackDateParser()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
parse(java.lang.String date)
Attempts to parse the specified date.
|
private static final java.lang.String[] formats
private final java.util.List<java.text.DateFormat> dateParsers
private int activeDateParser
FallbackDateParser()
public java.util.Date parse(java.lang.String date) throws java.text.ParseException
date
- The date to parse.java.text.ParseException
- Occurs if the date does not match any of the supported date
formats.