Class ObjectReaderImplStringArray

java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderImplStringArray
All Implemented Interfaces:
ObjectReader

public final class ObjectReaderImplStringArray extends Object
  • Field Details

    • HASH_TYPE

      public static final long HASH_TYPE
    • objectClass

      protected final Class objectClass
  • Method Details

    • createInstance

      public Object createInstance(Collection collection, long features)
      Returns:
      ObjectReader
    • readObject

      public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from the specified JSONReader with the given field type, field name, and features.
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object
    • readJSONBObject

      public Object readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from JSONB format.
      Specified by:
      readJSONBObject in interface ObjectReader
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object
    • getObjectClass

      public Class getObjectClass()
      Description copied from interface: ObjectReader
      Gets the class of objects that this ObjectReader can deserialize.
      Specified by:
      getObjectClass in interface ObjectReader<T>
      Returns:
      the object class, or null if not specified
    • createInstance

      public Object createInstance(long features)
      Specified by:
      createInstance in interface ObjectReader<T>
      Returns:
      ObjectReader