Package com.alibaba.fastjson2.util
Class ApacheLang3Support.PairWriter
java.lang.Object
com.alibaba.fastjson2.util.ApacheLang3Support.PairWriter
- All Implemented Interfaces:
ObjectWriter
- Enclosing interface:
ApacheLang3Support
-
Constructor Summary
Constructors -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.fastjson2.writer.ObjectWriter
getFeatures, getFieldValue, getFieldWriter, getFieldWriter, getFieldWriters, hasFilter, setFilter, setNameFilter, setPropertyFilter, setPropertyPreFilter, setValueFilter, toJSONString, write, writeArrayMapping, writeArrayMappingJSONB, writeArrayMappingJSONB, writeTypeInfo, writeWithFilter, writeWithFilter
-
Constructor Details
-
PairWriter
-
-
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- 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- 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
-