public class DateMarshaller extends java.lang.Object implements ObjectMarshaller<JSON>
| Constructor and Description |
|---|
DateMarshaller()
Default constructor.
|
DateMarshaller(java.text.Format formatter)
Constructor with a custom formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshalObject(java.lang.Object object,
JSON converter)
Performs the conversion
|
boolean |
supports(java.lang.Object object)
Checks wheter the ObjectMarshaller is able/intended to support the given Object
|
public DateMarshaller(java.text.Format formatter)
formatter - the formatterpublic DateMarshaller()
public boolean supports(java.lang.Object object)
ObjectMarshallersupports in interface ObjectMarshaller<JSON>object - the object which is about getting convertedtrue if the marshaller can/should perform the marshalling, false otherwisepublic void marshalObject(java.lang.Object object,
JSON converter)
throws ConverterException
ObjectMarshallermarshalObject in interface ObjectMarshaller<JSON>object - the object which is about getting convertedconverter - the Converter to useConverterException - on failure