Package com.alibaba.fastjson2.writer
Class ObjectWriterException
java.lang.Object
com.alibaba.fastjson2.writer.ObjectWriterAdapter<Exception>
com.alibaba.fastjson2.writer.ObjectWriterException
- All Implemented Interfaces:
ObjectWriter<Exception>
-
Field Summary
Fields inherited from class com.alibaba.fastjson2.writer.ObjectWriterAdapter
fieldWriterArray, typeName, typeNameHash, typeNameJSONB, typeNameSymbolCache -
Constructor Summary
ConstructorsConstructorDescriptionObjectWriterException(Class objectType, long features, List<FieldWriter> fieldWriters) -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter with the given field name, field type, and features.voidwriteJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in JSONB format.Methods inherited from class com.alibaba.fastjson2.writer.ObjectWriterAdapter
errorOnNoneSerializable, getFeatures, getFieldWriter, getFieldWriters, hasFilter, hasFilter0, setNameFilter, setPropertyFilter, setPropertyPreFilter, setValueFilter, toJSONObject, toJSONObject, toMap, toString, writeArrayMappingJSONB, writeClassInfo, writeTypeInfo, writeWithFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.fastjson2.writer.ObjectWriter
getFieldValue, getFieldWriter, setFilter, toJSONString, write, writeArrayMapping, writeArrayMappingJSONB, writeWithFilter
-
Constructor Details
-
ObjectWriterException
-
-
Method Details
-
writeJSONB
public void writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Description copied from interface:ObjectWriterWrites an object to the JSONWriter in JSONB format.- Specified by:
writeJSONBin interfaceObjectWriter<Exception>- Overrides:
writeJSONBin classObjectWriterAdapter<Exception>- Parameters:
jsonWriter- the JSONWriter to which the object should be writtenobject- the object to writefieldName- the name of the field being writtenfieldType- the type of the field being writtenfeatures- the features to use for writing
-
write
public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Description copied from interface:ObjectWriterWrites an object to the JSONWriter with the given field name, field type, and features.- Specified by:
writein interfaceObjectWriter<Exception>- Overrides:
writein classObjectWriterAdapter<Exception>- Parameters:
jsonWriter- the JSONWriter to which the object should be writtenobject- the object to writefieldName- the name of the field being writtenfieldType- the type of the field being writtenfeatures- the features to use for writing
-