Class XSDDateTimeDateEncoder
- java.lang.Object
-
- com.sun.xml.rpc.encoding.simpletype.SimpleTypeEncoderBase
-
- com.sun.xml.rpc.encoding.simpletype.XSDDateTimeDateEncoder
-
- All Implemented Interfaces:
SimpleTypeEncoder
- Direct Known Subclasses:
XSDDateTimeCalendarEncoder
public class XSDDateTimeDateEncoder extends SimpleTypeEncoderBase
- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected static SimpleDateFormatdateFormatterprotected static TimeZonegmtTimeZoneprotected static Localelocaleprotected static SimpleDateFormattimeZoneFormatter
-
Constructor Summary
Constructors Modifier Constructor Description protectedXSDDateTimeDateEncoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static DatedecodeDateUtil(String str, StringBuffer zone)protected static StringgetDateFormatPattern(String xsdDateTime)protected static intgetDateFormatPattern(String dateStr, StringBuffer strBuf)static SimpleTypeEncodergetInstance()StringobjectToString(Object obj, XMLWriter writer)ObjectstringToObject(String str, XMLReader reader)static voidvalidateDateStr(String dateStr)-
Methods inherited from class com.sun.xml.rpc.encoding.simpletype.SimpleTypeEncoderBase
writeAdditionalNamespaceDeclarations, writeValue
-
-
-
-
Field Detail
-
locale
protected static final Locale locale
-
timeZoneFormatter
protected static final SimpleDateFormat timeZoneFormatter
-
gmtTimeZone
protected static final TimeZone gmtTimeZone
-
dateFormatter
protected static final SimpleDateFormat dateFormatter
-
-
Method Detail
-
getInstance
public static SimpleTypeEncoder getInstance()
-
objectToString
public String objectToString(Object obj, XMLWriter writer) throws Exception
- Specified by:
objectToStringin interfaceSimpleTypeEncoder- Specified by:
objectToStringin classSimpleTypeEncoderBase- Throws:
Exception
-
stringToObject
public Object stringToObject(String str, XMLReader reader) throws Exception
- Specified by:
stringToObjectin interfaceSimpleTypeEncoder- Specified by:
stringToObjectin classSimpleTypeEncoderBase- Throws:
Exception
-
validateDateStr
public static void validateDateStr(String dateStr) throws Exception
- Throws:
Exception
-
decodeDateUtil
protected static Date decodeDateUtil(String str, StringBuffer zone) throws Exception
- Throws:
Exception
-
getDateFormatPattern
protected static int getDateFormatPattern(String dateStr, StringBuffer strBuf)
-
-