public class DateTimeSerializer extends Object implements Serializer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATETIME_FORMAT |
| Constructor and Description |
|---|
DateTimeSerializer(boolean accepts_null_input) |
DateTimeSerializer(boolean accepts_null_input,
String datetimeFormat) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(Element content)
This method takes an xml type element and deserialize it to an object.
|
Object |
deserialize(String dateStr) |
XmlElement |
serialize(Object object)
This method takes an object and returns a representation as a string
containing the right xml type tag.
|
public static final String DEFAULT_DATETIME_FORMAT
public DateTimeSerializer(boolean accepts_null_input)
public DateTimeSerializer(boolean accepts_null_input,
String datetimeFormat)
public Object deserialize(Element content) throws XMLRPCException
Serializerdeserialize in interface Serializercontent - Must be an xml element of a specific type.XMLRPCException - Will be thrown whenervt the deserialization fails.public Object deserialize(String dateStr) throws XMLRPCException
XMLRPCExceptionpublic XmlElement serialize(Object object)
Serializerserialize in interface Serializerobject - The object that should be serialized.Copyright © 2025. All rights reserved.