Class EpochMilliXmlAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Long>
org.bremersee.xml.adapter.EpochMilliXmlAdapter

public class EpochMilliXmlAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Long>
The epoch milli xml adapter.
Author:
Christian Bremer
  • Constructor Details

    • EpochMilliXmlAdapter

      public EpochMilliXmlAdapter()
      Instantiates a new epoch milli xml adapter.
    • EpochMilliXmlAdapter

      public EpochMilliXmlAdapter(TimeZone timeZone, Locale locale)
      Instantiates a new epoch milli xml adapter.
      Parameters:
      timeZone - the time zone
      locale - the locale
  • Method Details

    • unmarshal

      public Long unmarshal(String v) throws Exception
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Long>
      Throws:
      Exception
    • marshal

      public String marshal(Long v)
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Long>