public class XSDDateTimeDateEncoder extends SimpleTypeEncoderBase
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
dateFormatter |
protected static TimeZone |
gmtTimeZone |
protected static Locale |
locale |
protected static SimpleDateFormat |
timeZoneFormatter |
| Modifier | Constructor and Description |
|---|---|
protected |
XSDDateTimeDateEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected static Date |
decodeDateUtil(String str,
StringBuffer zone) |
protected static String |
getDateFormatPattern(String xsdDateTime) |
protected static int |
getDateFormatPattern(String dateStr,
StringBuffer strBuf) |
static SimpleTypeEncoder |
getInstance() |
String |
objectToString(Object obj,
XMLWriter writer) |
Object |
stringToObject(String str,
XMLReader reader) |
static void |
validateDateStr(String dateStr) |
writeAdditionalNamespaceDeclarations, writeValueprotected static final Locale locale
protected static final SimpleDateFormat timeZoneFormatter
protected static final TimeZone gmtTimeZone
protected static final SimpleDateFormat dateFormatter
public static SimpleTypeEncoder getInstance()
public String objectToString(Object obj, XMLWriter writer) throws Exception
objectToString in interface SimpleTypeEncoderobjectToString in class SimpleTypeEncoderBaseExceptionpublic Object stringToObject(String str, XMLReader reader) throws Exception
stringToObject in interface SimpleTypeEncoderstringToObject in class SimpleTypeEncoderBaseExceptionpublic static void validateDateStr(String dateStr) throws Exception
Exceptionprotected static Date decodeDateUtil(String str, StringBuffer zone) throws Exception
Exceptionprotected static int getDateFormatPattern(String dateStr, StringBuffer strBuf)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.