java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<
String,
Date>
com.priint.pubserver.metadata.xml.FailsafeDateAdapter
public class FailsafeDateAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Date>
A more tolerant Date Adapter.
Any malformed date in XML will be interpreted as January 1st 1970.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FailsafeDateAdapter
public FailsafeDateAdapter()
-
Method Details
-
marshal
- Specified by:
marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Date>
- Throws:
Exception
-
unmarshal
- Specified by:
unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Date>
- Throws:
Exception