Interface JSONB
-
public interface JSONBx90 # type_char int x91 # binary len_int32 bytes x92 # type [str] symbol_int32 jsonb x93 # referencex94 - xa3 # array_0 - array_15 xa4 # array len_int32 item*
xa5 # object_end xa6 # object_start
xa7 # local time b0 b1 b2 xa8 # local datetime b0 b1 b2 b3 b4 b5 b6 xa9 # local date b0 b1 b2 b3 xab # timestamp millis b0 b1 b2 b3 b4 b5 b6 b7 xac # timestamp seconds b0 b1 b2 b3 xad # timestamp minutes b0 b1 b2 b3 xae # timestamp b0 b1 b2 b3 b4 b5 b6 b7 nano_int32
xaf # null xb0 # boolean false xb1 # boolean true xb2 # double 0 xb3 # double 1 xb4 # double_long xb5 # double xb6 # float_int xb7 # float xb8 # decimal_long xb9 # decimal xba # bigint_long xbb # bigint xbc # short xbd # byte xbe # long xbf # long encoded as 32-bit int xc0 - xc7 # three-octet compact long (-x40000 to x3ffff) xc8 - xd7 # two-octet compact long (-x800 to x7ff, xd0 is 0) xd8 - xef # one-octet compact long (-x8 to xf, xe0 is 0)
xf0 - xff # one-octet compact int x00 - x2f # one-octet compact int
x30 - x3f # two-octet compact int (-x800 to x7ff) x40 - x47 # three-octet compact int (-x40000 to x3ffff) x48 # 32-bit signed integer ('I')
x49 - x78 # ascii string length 0-47 x79 # ascii-8 string variable-length x7a # utf-8 string variable-length x7b # utf-16 string variable-length x7c # utf-16LE string variable-length x7d # utf-16BE string variable-length x7e # gb18030 string variable-length x7f # symbol
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceJSONB.Constants
-
Method Summary
Static Methods Modifier and Type Method Description static <T> Tcopy(T object, JSONWriter.Feature... features)static voiddump(byte[] jsonbBytes)static voiddump(byte[] jsonbBytes, SymbolTable symbolTable)static byte[]fromJSONBytes(byte[] jsonUtf8Bytes)static byte[]fromJSONString(String str)static Objectparse(byte[] jsonbBytes, JSONReader.Context context)static Objectparse(byte[] jsonbBytes, JSONReader.Feature... features)static Objectparse(byte[] jsonbBytes, SymbolTable symbolTable, JSONReader.Feature... features)static Objectparse(InputStream in, JSONReader.Context context)static JSONArrayparseArray(byte[] jsonbBytes)static <T> List<T>parseArray(byte[] jsonbBytes, Type type)static <T> List<T>parseArray(byte[] jsonbBytes, Type... types)static <T> List<T>parseArray(byte[] jsonbBytes, Type[] types, JSONReader.Feature... features)static <T> List<T>parseArray(byte[] jsonbBytes, Type type, JSONReader.Feature... features)static JSONArrayparseArray(InputStream in, JSONReader.Context context)static JSONObjectparseObject(byte[] jsonbBytes)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, SymbolTable symbolTable)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, SymbolTable symbolTable, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Type type)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Type objectType, JSONReader.Context context)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Type objectType, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Type objectClass, SymbolTable symbolTable)static <T> TparseObject(byte[] jsonbBytes, int off, int len, Type objectClass, SymbolTable symbolTable, JSONReader.Feature... features)static JSONObjectparseObject(byte[] jsonbBytes, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, TypeReference typeReference, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, Class<T> objectClass)static <T> TparseObject(byte[] jsonbBytes, Class<T> objectClass, Filter filter, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, Class<T> objectClass, JSONReader.Context context)static <T> TparseObject(byte[] jsonbBytes, Class<T> objectClass, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, Type objectType)static <T> TparseObject(byte[] jsonbBytes, Type... types)static <T> TparseObject(byte[] jsonbBytes, Type objectClass, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable)static <T> TparseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable, Filter[] filters, JSONReader.Feature... features)static <T> TparseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable, JSONReader.Feature... features)static <T> TparseObject(InputStream in, int length, Type objectType, JSONReader.Context context)static <T> TparseObject(InputStream in, int length, Type objectType, JSONReader.Feature... features)static JSONObjectparseObject(InputStream in, JSONReader.Context context)static <T> TparseObject(InputStream in, Class objectClass, JSONReader.Context context)static <T> TparseObject(InputStream in, Class objectClass, JSONReader.Feature... features)static <T> TparseObject(InputStream in, Type objectType, JSONReader.Context context)static <T> TparseObject(InputStream in, Type objectType, JSONReader.Feature... features)static SymbolTablesymbolTable(String... names)static byte[]toBytes(boolean v)static byte[]toBytes(byte i)static byte[]toBytes(int i)static byte[]toBytes(long i)static byte[]toBytes(short i)static byte[]toBytes(Object object)static byte[]toBytes(Object object, JSONWriter.Context context)static byte[]toBytes(Object object, JSONWriter.Feature... features)static byte[]toBytes(Object object, SymbolTable symbolTable)static byte[]toBytes(Object object, SymbolTable symbolTable, Filter[] filters, JSONWriter.Feature... features)static byte[]toBytes(Object object, SymbolTable symbolTable, JSONWriter.Feature... features)static byte[]toBytes(String str)static byte[]toBytes(String str, Charset charset)static StringtoJSONString(byte[] jsonbBytes)static StringtoJSONString(byte[] jsonbBytes, boolean raw)static StringtoJSONString(byte[] jsonbBytes, SymbolTable symbolTable)static StringtypeName(byte type)static intwriteInt(byte[] bytes, int off, int i)static intwriteTo(OutputStream out, Object object, JSONWriter.Feature... features)
-
-
-
Method Detail
-
dump
static void dump(byte[] jsonbBytes)
-
dump
static void dump(byte[] jsonbBytes, SymbolTable symbolTable)
-
toBytes
static byte[] toBytes(boolean v)
-
toBytes
static byte[] toBytes(int i)
-
toBytes
static byte[] toBytes(byte i)
-
toBytes
static byte[] toBytes(short i)
-
toBytes
static byte[] toBytes(long i)
-
writeInt
static int writeInt(byte[] bytes, int off, int i)
-
parse
static Object parse(byte[] jsonbBytes, JSONReader.Context context)
- Parameters:
jsonbBytes-context-- Returns:
- Since:
- 2.0.46
-
parse
static Object parse(byte[] jsonbBytes, JSONReader.Feature... features)
-
parse
static Object parse(InputStream in, JSONReader.Context context)
-
parse
static Object parse(byte[] jsonbBytes, SymbolTable symbolTable, JSONReader.Feature... features)
-
parseObject
static JSONObject parseObject(byte[] jsonbBytes)
-
parseObject
static JSONObject parseObject(byte[] jsonbBytes, JSONReader.Feature... features)
-
parseObject
static JSONObject parseObject(InputStream in, JSONReader.Context context)
-
parseArray
static JSONArray parseArray(byte[] jsonbBytes)
-
parseArray
static JSONArray parseArray(InputStream in, JSONReader.Context context)
-
parseArray
static <T> List<T> parseArray(byte[] jsonbBytes, Type type, JSONReader.Feature... features)
-
parseArray
static <T> List<T> parseArray(byte[] jsonbBytes, Type[] types, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Class<T> objectClass)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type objectType)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type... types)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Class<T> objectClass, Filter filter, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable, Filter[] filters, JSONReader.Feature... features)
-
copy
static <T> T copy(T object, JSONWriter.Feature... features)- Since:
- 2.0.30
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, TypeReference typeReference, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(InputStream in, Class objectClass, JSONReader.Feature... features) throws IOException
- Throws:
IOException- Since:
- 2.0.30
-
parseObject
static <T> T parseObject(InputStream in, Type objectType, JSONReader.Feature... features) throws IOException
- Throws:
IOException- Since:
- 2.0.30
-
parseObject
static <T> T parseObject(InputStream in, Type objectType, JSONReader.Context context)
- Since:
- 2.0.30
-
parseObject
static <T> T parseObject(InputStream in, Class objectClass, JSONReader.Context context)
- Since:
- 2.0.30
-
parseObject
static <T> T parseObject(InputStream in, int length, Type objectType, JSONReader.Context context) throws IOException
- Throws:
IOException
-
parseObject
static <T> T parseObject(InputStream in, int length, Type objectType, JSONReader.Feature... features) throws IOException
- Throws:
IOException
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Class<T> objectClass, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Class<T> objectClass, JSONReader.Context context)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, Type objectClass, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Type type)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Type objectType, JSONReader.Context context)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Type objectType, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, SymbolTable symbolTable)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Type objectClass, SymbolTable symbolTable)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, SymbolTable symbolTable, JSONReader.Feature... features)
-
parseObject
static <T> T parseObject(byte[] jsonbBytes, int off, int len, Type objectClass, SymbolTable symbolTable, JSONReader.Feature... features)
-
toBytes
static byte[] toBytes(String str)
-
toBytes
static byte[] toBytes(Object object)
-
toBytes
static byte[] toBytes(Object object, JSONWriter.Context context)
-
toBytes
static byte[] toBytes(Object object, SymbolTable symbolTable)
-
toBytes
static byte[] toBytes(Object object, SymbolTable symbolTable, JSONWriter.Feature... features)
-
toBytes
static byte[] toBytes(Object object, SymbolTable symbolTable, Filter[] filters, JSONWriter.Feature... features)
-
toBytes
static byte[] toBytes(Object object, JSONWriter.Feature... features)
-
symbolTable
static SymbolTable symbolTable(String... names)
-
toJSONString
static String toJSONString(byte[] jsonbBytes)
-
toJSONString
static String toJSONString(byte[] jsonbBytes, boolean raw)
- Since:
- 2.0.28
-
toJSONString
static String toJSONString(byte[] jsonbBytes, SymbolTable symbolTable)
-
writeTo
static int writeTo(OutputStream out, Object object, JSONWriter.Feature... features)
-
fromJSONString
static byte[] fromJSONString(String str)
-
fromJSONBytes
static byte[] fromJSONBytes(byte[] jsonUtf8Bytes)
-
typeName
static String typeName(byte type)
-
-