Package com.alibaba.fastjson2.reader
Class ObjectReaderImplDate
- java.lang.Object
-
- com.alibaba.fastjson2.codec.DateTimeCodec
-
- com.alibaba.fastjson2.reader.ObjectReaderImplDate
-
- All Implemented Interfaces:
ObjectReader
public class ObjectReaderImplDate extends DateTimeCodec implements ObjectReader
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectReaderImplDateINSTANCE-
Fields inherited from class com.alibaba.fastjson2.codec.DateTimeCodec
format, formatHasDay, formatHasHour, formatISO8601, formatMillis, formatUnixTime, locale, useSimpleDateFormat, useSimpleFormatter, yyyyMMdd10, yyyyMMdd8, yyyyMMddhhmm16, yyyyMMddhhmmss14, yyyyMMddhhmmss19
-
Fields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE, VALUE_NAME
-
-
Constructor Summary
Constructors Constructor Description ObjectReaderImplDate(String format, Locale locale)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DatecreateInstance(Map map, long features)ClassgetObjectClass()static ObjectReaderImplDateof(String format, Locale locale)ObjectreadJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)ObjectreadObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)-
Methods inherited from class com.alibaba.fastjson2.codec.DateTimeCodec
getDateFormatter, getDateFormatter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.fastjson2.reader.ObjectReader
accept, acceptExtra, acceptExtra, autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValue
-
-
-
-
Field Detail
-
INSTANCE
public static final ObjectReaderImplDate INSTANCE
-
-
Method Detail
-
of
public static ObjectReaderImplDate of(String format, Locale locale)
-
getObjectClass
public Class getObjectClass()
- Specified by:
getObjectClassin interfaceObjectReader
-
readJSONBObject
public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readJSONBObjectin interfaceObjectReader- Returns:
ObjectReader
-
readObject
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
- Specified by:
readObjectin interfaceObjectReader- Returns:
ObjectReader
-
createInstance
public Date createInstance(Map map, long features)
- Specified by:
createInstancein interfaceObjectReader- Returns:
ObjectReader
-
-