Class TimeZoneDateAdapter


  • public class TimeZoneDateAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.util.Date>
    DateAdapter is used by JAXB to convert Dates to String and vice versa using the UTC Time Zone.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DATE_FORMAT  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(java.util.Date d)  
      java.util.Date unmarshal​(java.lang.String d)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeZoneDateAdapter

        public TimeZoneDateAdapter()
    • Method Detail

      • marshal

        public java.lang.String marshal​(java.util.Date d)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.util.Date>
      • unmarshal

        public java.util.Date unmarshal​(java.lang.String d)
                                 throws java.text.ParseException
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.util.Date>
        Throws:
        java.text.ParseException