Uses of Class
com.alibaba.fastjson2.JSONWriter
Packages that use JSONWriter
Package
Description
-
Uses of JSONWriter in com.alibaba.fastjson2
Subclasses of JSONWriter in com.alibaba.fastjson2Methods in com.alibaba.fastjson2 that return JSONWriterModifier and TypeMethodDescriptionstatic JSONWriterJSONWriter.of()Creates a new JSONWriter with default configuration.static JSONWriterJSONWriter.of(JSONWriter.Context context) Creates a new JSONWriter with the specified context.static JSONWriterJSONWriter.of(JSONWriter.Feature... features) Creates a new JSONWriter with the specified features.static JSONWriterJSONWriter.of(ObjectWriterProvider provider, JSONWriter.Feature... features) Creates a new JSONWriter with the specified object writer provider and features.static JSONWriterJSONWriter.ofJSONB()Creates a new JSONWriter instance for JSONB (binary JSON) format with default context.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Context context) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Context context, SymbolTable symbolTable) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context and symbol table.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Feature... features) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified features.static JSONWriterJSONWriter.ofJSONB(SymbolTable symbolTable) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified symbol table.static JSONWriterJSONWriter.ofPretty()Creates a new JSONWriter instance with pretty formatting enabled.static JSONWriterJSONWriter.ofPretty(JSONWriter writer) Enables pretty formatting on an existing JSONWriter instance.static JSONWriterJSONWriter.ofUTF16(JSONWriter.Feature... features) Creates a new JSONWriter instance using UTF-16 encoding with the specified features.static JSONWriterJSONWriter.ofUTF8()Creates a new JSONWriter instance using UTF-8 encoding with default context.static JSONWriterJSONWriter.ofUTF8(JSONWriter.Context context) Creates a new JSONWriter instance using UTF-8 encoding with the specified context.static JSONWriterJSONWriter.ofUTF8(JSONWriter.Feature... features) Creates a new JSONWriter instance using UTF-8 encoding with the specified features.Methods in com.alibaba.fastjson2 with parameters of type JSONWriterModifier and TypeMethodDescriptionstatic intJSONB.IO.checkAndWriteTypeName(byte[] bytes, int off, Object object, Class<?> fieldClass, JSONWriter jsonWriter) Checks and writes a type name to a byte arraystatic JSONWriterJSONWriter.ofPretty(JSONWriter writer) Enables pretty formatting on an existing JSONWriter instance.static intJSONB.IO.writeNameRaw(byte[] bytes, int off, byte[] name, long nameHash, JSONWriter jsonWriter) Writes a raw name to a byte arraystatic intJSONB.IO.writeReference(byte[] bytes, int off, String path, JSONWriter jsonWriter) Writes a reference to a byte arraystatic intJSONB.IO.writeTypeName(byte[] bytes, int off, String typeName, JSONWriter jsonWriter) Writes a type name to a byte array -
Uses of JSONWriter in com.alibaba.fastjson2.filter
Methods in com.alibaba.fastjson2.filter with parameters of type JSONWriterModifier and TypeMethodDescriptionbooleanPropertyPreFilter.process(JSONWriter writer, Object source, String name) booleanSimplePropertyPreFilter.process(JSONWriter writer, Object source, String name) voidAfterFilter.writeAfter(JSONWriter serializer, Object object) voidBeforeFilter.writeBefore(JSONWriter serializer, Object object) -
Uses of JSONWriter in com.alibaba.fastjson2.util
Methods in com.alibaba.fastjson2.util with parameters of type JSONWriterModifier and TypeMethodDescriptionvoidApacheLang3Support.PairWriter.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidApacheLang3Support.PairWriter.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) -
Uses of JSONWriter in com.alibaba.fastjson2.writer
Methods in com.alibaba.fastjson2.writer with parameters of type JSONWriterModifier and TypeMethodDescriptionFieldWriter.getItemWriter(JSONWriter writer, Type itemType) final ObjectWriterFieldWriterList.getItemWriter(JSONWriter jsonWriter, Type itemType) FieldWriter.getObjectWriter(JSONWriter jsonWriter, Class valueClass) final ObjectWriterFieldWriterList.getObjectWriter(JSONWriter jsonWriter, Class valueClass) FieldWriterObject.getObjectWriter(JSONWriter jsonWriter, Class valueClass) protected final ObjectWriterFieldWriterObject.getObjectWriterVoid(JSONWriter jsonWriter, Class valueClass) default booleanObjectWriter.hasFilter(JSONWriter jsonWriter) Checks if the JSONWriter has any filters enabled that would affect serialization.final booleanObjectWriterAdapter.hasFilter(JSONWriter jsonWriter) protected final booleanObjectWriterAdapter.hasFilter0(JSONWriter jsonWriter) abstract booleanFieldWriter.write(JSONWriter jsonWriter, T o) booleanFieldWriterListField.write(JSONWriter jsonWriter, T object) booleanFieldWriterObject.write(JSONWriter jsonWriter, T object) default voidObjectWriter.write(JSONWriter jsonWriter, Object object) Writes an object to the JSONWriter using default parameters.voidObjectWriter.write(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.voidObjectWriter1.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter10.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter11.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter12.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter2.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter3.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter4.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter5.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter6.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter7.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter8.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriter9.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterAdapter.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterException.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplJSONP.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplMap.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplToString.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterRootName.write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) default voidObjectWriter.writeArrayMapping(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in array mapping format.voidObjectWriterPrimitiveImpl.writeArrayMapping(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) default voidObjectWriter.writeArrayMappingJSONB(JSONWriter jsonWriter, Object object) Writes an object to the JSONWriter in array mapping JSONB format.default voidObjectWriter.writeArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in array mapping JSONB format with additional parameters.voidObjectWriterAdapter.writeArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplMap.writeArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterPrimitiveImpl.writeArrayMappingJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidFieldWriter.writeBinary(JSONWriter jsonWriter, byte[] value) voidFieldWriter.writeBool(JSONWriter jsonWriter, boolean value) voidFieldWriter.writeBool(JSONWriter jsonWriter, boolean[] value) protected final voidObjectWriterAdapter.writeClassInfo(JSONWriter jsonWriter) voidFieldWriter.writeDate(JSONWriter jsonWriter, boolean writeFieldName, long millis) voidFieldWriter.writeDate(JSONWriter jsonWriter, boolean writeFieldName, Date value) voidFieldWriter.writeDate(JSONWriter jsonWriter, long millis) voidFieldWriter.writeDouble(JSONWriter jsonWriter, double value) voidFieldWriter.writeDouble(JSONWriter jsonWriter, double[] value) voidFieldWriter.writeDouble(JSONWriter jsonWriter, Double value) voidFieldWriter.writeEnum(JSONWriter jsonWriter, Enum e) voidFieldWriter.writeEnumJSONB(JSONWriter jsonWriter, Enum e) voidFieldWriterObject.writeEnumJSONB(JSONWriter jsonWriter, Enum e) final voidFieldWriter.writeFieldName(JSONWriter jsonWriter) final intFieldWriter.writeFieldNameJSONB(byte[] bytes, int off, JSONWriter jsonWriter) final voidFieldWriter.writeFieldNameJSONB(JSONWriter jsonWriter) voidFieldWriter.writeFloat(JSONWriter jsonWriter, float value) voidFieldWriter.writeFloat(JSONWriter jsonWriter, float[] value) protected final booleanFieldWriter.writeFloatNull(JSONWriter jsonWriter) voidFieldWriter.writeInt16(JSONWriter jsonWriter, short[] value) voidFieldWriter.writeInt32(JSONWriter jsonWriter, int value) voidFieldWriter.writeInt64(JSONWriter jsonWriter, long value) protected final booleanFieldWriter.writeIntNull(JSONWriter jsonWriter) default voidObjectWriter.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter in JSONB format.voidObjectWriterAdapter.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterException.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplMap.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterRootName.writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidFieldWriter.writeList(JSONWriter jsonWriter, List list) final voidFieldWriterList.writeList(JSONWriter jsonWriter, List list) voidFieldWriter.writeListJSONB(JSONWriter jsonWriter, List list) final voidFieldWriterList.writeListJSONB(JSONWriter jsonWriter, List list) voidFieldWriter.writeListStr(JSONWriter jsonWriter, boolean writeFieldName, List<String> list) final voidFieldWriterList.writeListStr(JSONWriter jsonWriter, boolean writeFieldName, List<String> list) voidFieldWriter.writeListValue(JSONWriter jsonWriter, List list) final voidFieldWriterList.writeListValue(JSONWriter jsonWriter, List list) voidFieldWriter.writeListValueJSONB(JSONWriter jsonWriter, List list) voidFieldWriterList.writeListValueJSONB(JSONWriter jsonWriter, List list) voidFieldWriter.writeString(JSONWriter jsonWriter, char[] value) voidFieldWriter.writeString(JSONWriter jsonWriter, String value) default booleanObjectWriter.writeTypeInfo(JSONWriter jsonWriter) Writes type information to the JSON output.booleanObjectWriterAdapter.writeTypeInfo(JSONWriter jsonWriter) booleanObjectWriterImplMap.writeTypeInfo(JSONWriter jsonWriter) abstract voidFieldWriter.writeValue(JSONWriter jsonWriter, T object) voidFieldWriterListField.writeValue(JSONWriter jsonWriter, T object) voidFieldWriterObject.writeValue(JSONWriter jsonWriter, T object) default voidObjectWriter.writeWithFilter(JSONWriter jsonWriter, Object object) Writes an object to the JSONWriter with filter support using default parameters.default voidObjectWriter.writeWithFilter(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) Writes an object to the JSONWriter with filter support.voidObjectWriterAdapter.writeWithFilter(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) voidObjectWriterImplMap.writeWithFilter(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) protected final booleanFieldWriterObject.writeWithUnwrapped(JSONWriter jsonWriter, Object value, long features, boolean refDetect, ObjectWriter valueWriter)