public final class OffsetDateTimeAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.OffsetDateTime>
Converts an OffsetDateTime
to a string representation according to XEP-0082: XMPP Date and Time Profiles and vice versa.
Constructor and Description |
---|
OffsetDateTimeAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
marshal(java.time.OffsetDateTime value) |
java.time.OffsetDateTime |
unmarshal(java.lang.String value) |
public final java.time.OffsetDateTime unmarshal(java.lang.String value)
unmarshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.OffsetDateTime>
public final java.lang.String marshal(java.time.OffsetDateTime value)
marshal
in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.OffsetDateTime>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.