cn.gtmap.estateplat.utils
类 JaxbDateTsAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
cn.gtmap.estateplat.utils.JaxbDateTsAdapter
public class JaxbDateTsAdapter
- extends XmlAdapter<String,Date>
Created by zdd on 2015/11/28.
序列化对象适配器 格式化日期 处理空值问题等,格式化成日期格式,不要时分秒
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxbDateTsAdapter
public JaxbDateTsAdapter()
unmarshal
public Date unmarshal(String s)
throws Exception
- 指定者:
- 类
XmlAdapter<String,Date> 中的 unmarshal
- 抛出:
Exception
marshal
public String marshal(Date date)
throws Exception
- 指定者:
- 类
XmlAdapter<String,Date> 中的 marshal
- 抛出:
Exception
Copyright © 2015–2016 cn.gtmap. All rights reserved.