public class XMLDateAdapter extends XmlAdapter<String,Date>
| 构造器和说明 |
|---|
XMLDateAdapter() |
public Date unmarshal(String v) throws Exception
unmarshal 在类中 XmlAdapter<String,Date>v - The value to be converted. Can be null.Exception - if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler.public String marshal(Date v) throws Exception
marshal 在类中 XmlAdapter<String,Date>v - The value to be convereted. Can be null.Exception - if there's an error during the conversion. The caller is responsible for
reporting the error to the user through ValidationEventHandler.Copyright © 2019. All rights reserved.