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