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 anOffsetDateTime
to 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 String
marshal(OffsetDateTime value)
OffsetDateTime
unmarshal(String value)
-
-
-
Method Detail
-
unmarshal
public final OffsetDateTime unmarshal(String value)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
-
marshal
public final String marshal(OffsetDateTime value)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<String,OffsetDateTime>
-
-