|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.dataformat.bindy.format.DatePatternFormat
public class DatePatternFormat
Constructor Summary | |
---|---|
DatePatternFormat()
|
|
DatePatternFormat(String pattern,
Locale locale)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatePatternFormat()
public DatePatternFormat(String pattern, Locale locale)
Method Detail |
---|
public String format(Date object) throws Exception
Format
format
in interface Format<Date>
object
- the object
Exception
- can be thrownpublic Date parse(String string) throws Exception
Format
parse
in interface Format<Date>
string
- the string
Exception
- can be thrownprotected DateFormat getDateFormat()
public String getPattern()
PatternFormat
getPattern
in interface PatternFormat<Date>
public void setPattern(String pattern)
pattern
- the pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |