Class DateXmlAdapter

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

public class DateXmlAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Date>
The date xml adapter.
Author:
Christian Bremer
  • Constructor Details

    • DateXmlAdapter

      public DateXmlAdapter()
      Instantiates a new date xml adapter.
    • DateXmlAdapter

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

    • unmarshal

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

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