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. 序列化对象适配器 格式化日期 处理空值问题等,格式化成日期格式,不要时分秒


构造方法摘要
JaxbDateTsAdapter()
           
 
方法摘要
 String marshal(Date date)
           
 Date unmarshal(String s)
           
 
从类 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.