Package com.alibaba.fastjson2
Interface JSONB.IO
- Enclosing interface:
- JSONB
public static interface JSONB.IO
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic intcheckAndWriteTypeName(byte[] bytes, int off, Object object, Class<?> fieldClass, JSONWriter jsonWriter) static intenumCapacity(Enum e, long features) static intint64Capacity(Collection<Long> values) static intputStringSizeLarge(byte[] bytes, int off, int strlen) static intputStringSizeSmall(byte[] bytes, int off, int val) static intsizeOfInt(int i) static intstartArray(byte[] bytes, int off, int size) static intstringCapacity(String str) static intstringCapacity(String[] strings) static intstringCapacity(Collection<String> strings) static intwriteBoolean(byte[] bytes, int off, boolean value) static intwriteBoolean(byte[] bytes, int off, boolean[] values) static intwriteBoolean(byte[] bytes, int off, Boolean value) static intwriteDouble(byte[] bytes, int off, double value) static intwriteDouble(byte[] bytes, int off, double[] values) static intwriteDouble(byte[] bytes, int off, Double value, long features) static intstatic intwriteFloat(byte[] bytes, int off, float value) static intwriteFloat(byte[] bytes, int off, float[] values) static intwriteFloat(byte[] bytes, int off, Float value, long features) static intwriteInstant(byte[] bytes, int off, Instant value) static intwriteInt16(byte[] bytes, int off, short val) static intwriteInt16(byte[] bytes, int off, Short val, long features) static intwriteInt32(byte[] bytes, int off, int value) static intwriteInt32(byte[] bytes, int off, Integer value, long features) static intwriteInt64(byte[] bytes, int off, long value) static intwriteInt64(byte[] bytes, int off, Long value, long features) static intwriteInt64(byte[] bytes, int off, Collection<Long> values, long features) static intwriteInt8(byte[] bytes, int off, byte val) static intstatic intwriteLocalDate(byte[] bytes, int off, LocalDate value) static intwriteLocalDateTime(byte[] bytes, int off, LocalDateTime value) static intwriteLocalTime(byte[] bytes, int off, LocalTime value) static intwriteNameRaw(byte[] bytes, int off, byte[] name, long nameHash, JSONWriter jsonWriter) static intwriteOffsetDateTime(byte[] bytes, int off, OffsetDateTime value) static intwriteOffsetTime(byte[] bytes, int off, OffsetTime value) static intwriteReference(byte[] bytes, int off, String path, JSONWriter jsonWriter) static intwriteString(byte[] bytes, int off, char[] chars) static intwriteString(byte[] bytes, int off, char[] chars, int coff, int strlen) static intwriteString(byte[] bytes, int off, String str) static intwriteString(byte[] bytes, int off, String[] strings, long features) static intwriteString(byte[] bytes, int off, Collection<String> strings, long features) static intwriteStringLatin1(byte[] bytes, int off, byte[] value) static intwriteStringLatin1(byte[] bytes, int off, char[] chars, int coff, int strlen) static intwriteStringUTF16(byte[] bytes, int off, byte[] value) static intwriteSymbol(byte[] bytes, int off, int symbol) static intwriteSymbol(byte[] bytes, int off, String str, SymbolTable symbolTable) static intwriteTypeName(byte[] bytes, int off, String typeName, JSONWriter jsonWriter) static intwriteUTF8(byte[] bytes, int off, char[] chars, int coff, int strlen) static int
-
Method Details
-
enumCapacity
-
writeEnum
-
writeBoolean
-
writeBoolean
static int writeBoolean(byte[] bytes, int off, boolean value) -
writeBoolean
static int writeBoolean(byte[] bytes, int off, boolean[] values) -
writeFloat
-
writeFloat
static int writeFloat(byte[] bytes, int off, float[] values) -
writeFloat
static int writeFloat(byte[] bytes, int off, float value) -
writeDouble
-
writeDouble
static int writeDouble(byte[] bytes, int off, double value) -
writeDouble
static int writeDouble(byte[] bytes, int off, double[] values) -
writeInt8
-
writeInt8
static int writeInt8(byte[] bytes, int off, byte val) -
writeInt16
-
writeInt16
static int writeInt16(byte[] bytes, int off, short val) -
writeInt32
-
writeSymbol
-
writeSymbol
static int writeSymbol(byte[] bytes, int off, int symbol) -
checkAndWriteTypeName
static int checkAndWriteTypeName(byte[] bytes, int off, Object object, Class<?> fieldClass, JSONWriter jsonWriter) -
writeTypeName
-
writeInt32
static int writeInt32(byte[] bytes, int off, int value) -
writeInt64
-
writeInt64
-
writeInt64
static int writeInt64(byte[] bytes, int off, long value) -
startArray
static int startArray(byte[] bytes, int off, int size) -
writeString
-
writeString
-
writeString
-
writeStringUTF16
static int writeStringUTF16(byte[] bytes, int off, byte[] value) -
writeStringLatin1
static int writeStringLatin1(byte[] bytes, int off, byte[] value) -
stringCapacity
-
stringCapacity
-
int64Capacity
-
stringCapacity
-
putStringSizeSmall
static int putStringSizeSmall(byte[] bytes, int off, int val) -
putStringSizeLarge
static int putStringSizeLarge(byte[] bytes, int off, int strlen) -
writeString
static int writeString(byte[] bytes, int off, char[] chars) -
writeString
static int writeString(byte[] bytes, int off, char[] chars, int coff, int strlen) -
writeStringLatin1
static int writeStringLatin1(byte[] bytes, int off, char[] chars, int coff, int strlen) -
writeUTF8
static int writeUTF8(byte[] bytes, int off, char[] chars, int coff, int strlen) -
sizeOfInt
static int sizeOfInt(int i) -
writeUUID
-
writeInstant
-
writeLocalDate
-
writeLocalTime
-
writeLocalDateTime
-
writeOffsetDateTime
-
writeOffsetTime
-
writeReference
-
writeNameRaw
-