Package rocks.xmpp.util.adapters
Class OffsetDateTimeAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
-
- rocks.xmpp.util.adapters.OffsetDateTimeAdapter
-
public final class OffsetDateTimeAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
Converts anOffsetDateTimeto a string representation according to XEP-0082: XMPP Date and Time Profiles and vice versa.
-
-
Constructor Summary
Constructors Constructor Description OffsetDateTimeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(OffsetDateTime value)OffsetDateTimeunmarshal(String value)
-
-
-
Method Detail
-
unmarshal
public final OffsetDateTime unmarshal(String value)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
-
marshal
public final String marshal(OffsetDateTime value)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
-
-