public class DatePatternFormat extends Object implements PatternFormat<Date>
Constructor and Description |
---|
DatePatternFormat() |
DatePatternFormat(String pattern,
Locale locale) |
DatePatternFormat(String pattern,
String timezone,
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
Format
public Date parse(String string) throws Exception
Format
protected DateFormat getDateFormat()
public String getPattern()
PatternFormat
getPattern
in interface PatternFormat<Date>
public void setPattern(String pattern)
pattern
- the patternApache Camel