public class SimpleDateMatcher
extends java.lang.Object
Constructor and Description |
---|
SimpleDateMatcher(java.lang.String input,
java.util.Locale locale)
Construct the SimpleDateMatcher for this input (if possible).
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
compress(java.lang.String input,
java.util.Locale locale)
'Compress' the input string (which we think represents a date) so that it can be matched in the list of predefined formats.
|
int |
getComponentCount() |
java.lang.String |
getCompressed() |
int |
getDayLength() |
int |
getDayOfMonth() |
java.lang.String |
getFormat() |
int |
getMonthLength() |
int |
getMonthValue() |
PatternInfo.Type |
getType() |
static PatternInfo.Type |
getType(java.lang.String pattern,
java.util.Locale locale) |
int |
getYear() |
int |
getYearLength() |
boolean |
isKnown() |
boolean |
parse() |
public SimpleDateMatcher(java.lang.String input, java.util.Locale locale)
input
- The input to be parsedlocale
- The Locale we are currently processingpublic static PatternInfo.Type getType(java.lang.String pattern, java.util.Locale locale)
public static java.lang.String compress(java.lang.String input, java.util.Locale locale)
input
- The input string to be matchedlocale
- The Locale the date String is inpublic PatternInfo.Type getType()
public java.lang.String getFormat()
public java.lang.String getCompressed()
public int getComponentCount()
public int getDayOfMonth()
public int getMonthValue()
public int getYear()
public int getDayLength()
public int getMonthLength()
public int getYearLength()
public boolean isKnown()
public boolean parse()