public class DatePatternFormat extends Object implements PatternFormat<Date>
| Constructor and Description |
|---|
DatePatternFormat() |
DatePatternFormat(String pattern,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date object)
Formats the object into a String
|
protected DateFormat |
getDateFormat() |
String |
getPattern()
Method used to retrieve the pattern for the format
|
Date |
parse(String string)
Parses a String into an object
|
void |
setPattern(String pattern)
Sets the pattern
|
public String format(Date object) throws Exception
Formatpublic Date parse(String string) throws Exception
Formatprotected DateFormat getDateFormat()
public String getPattern()
PatternFormatgetPattern in interface PatternFormat<Date>public void setPattern(String pattern)
pattern - the patternApache Camel