| Constructor and Description |
|---|
XmlDateFormatTransformer(DateFormat dateFormat)
使用指定日期格式创建转换器
|
| Modifier and Type | Method and Description |
|---|---|
Date |
read(String value)
将字符串解析为日期
|
String |
write(Date value)
将日期格式化为字符串
|
public XmlDateFormatTransformer(DateFormat dateFormat)
dateFormat - 日期格式public Date read(String value) throws ParseException
read in interface org.simpleframework.xml.transform.Transform<Date>value - 字符串ParseException - 转换失败时抛出 ParseExceptionCopyright © 2017. All rights reserved.