| Modifier and Type | Method and Description |
|---|---|
static JSONReader.Context |
JSON.createReadContext(int featuresValue,
Feature... features) |
static JSONReader.Context |
JSON.createReadContext(ObjectReaderProvider provider,
int featuresValue,
Feature... features) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
JSON.parseObject(byte[] jsonBytes,
java.lang.reflect.Type type,
JSONReader.Context context) |
| Modifier and Type | Field and Description |
|---|---|
protected JSONReader.Context |
JSONReader.context |
(package private) static JSONReader.Context |
JSONPath.PARSE_CONTEXT |
(package private) JSONReader.Context |
JSONPath.readerContext
Context for JSON reading operations
|
| Modifier and Type | Method and Description |
|---|---|
protected JSONReader.Context |
JSONPath.createContext()
Creates a new reading context
|
protected JSONReader.Context |
JSONPathTypedMulti.createContext() |
static JSONReader.Context |
JSONFactory.createReadContext()
Creates a new JSON reader context with default settings.
|
static JSONReader.Context |
JSONFactory.createReadContext(Filter filter,
JSONReader.Feature... features) |
static JSONReader.Context |
JSONFactory.createReadContext(JSONReader.Feature... features)
Creates a new JSON reader context with the specified features.
|
static JSONReader.Context |
JSONFactory.createReadContext(long features)
Creates a new JSON reader context with the specified features.
|
static JSONReader.Context |
JSONFactory.createReadContext(ObjectReaderProvider provider,
JSONReader.Feature... features) |
static JSONReader.Context |
JSONFactory.createReadContext(java.util.function.Supplier<java.util.Map> objectSupplier,
JSONReader.Feature... features) |
static JSONReader.Context |
JSONFactory.createReadContext(java.util.function.Supplier<java.util.Map> objectSupplier,
java.util.function.Supplier<java.util.List> arraySupplier,
JSONReader.Feature... features) |
static JSONReader.Context |
JSONFactory.createReadContext(SymbolTable symbolTable) |
static JSONReader.Context |
JSONFactory.createReadContext(SymbolTable symbolTable,
JSONReader.Feature... features) |
JSONReader.Context |
JSONReader.getContext()
Gets the reading context for this JSONReader.
|
JSONReader.Context |
JSONPath.getReaderContext()
Gets the reading context, creating it if necessary
|
JSONReader.Context |
JSONReader.Context.setBufferSize(int bufferSize)
Sets the buffer size for this context.
|
| Modifier and Type | Method and Description |
|---|---|
JSONReader |
JSONFactory.JSONReaderUTF8Creator.create(JSONReader.Context ctx,
java.lang.String str,
byte[] bytes,
int offset,
int length) |
JSONReader |
JSONFactory.JSONReaderUTF16Creator.create(JSONReader.Context ctx,
java.lang.String str,
char[] chars,
int offset,
int length) |
static JSONReader |
JSONReader.of(byte[] bytes,
int offset,
int length,
java.nio.charset.Charset charset,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(byte[] bytes,
int offset,
int length,
JSONReader.Context context) |
static JSONReaderUTF8 |
JSONReaderUTF8.of(byte[] bytes,
int off,
int len,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(byte[] utf8Bytes,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(java.nio.ByteBuffer buffer,
java.nio.charset.Charset charset,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(char[] chars,
int offset,
int length,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(char[] chars,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(java.io.InputStream is,
java.nio.charset.Charset charset,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(JSONReader.Context context,
byte[] utf8Bytes)
Deprecated.
|
static JSONReader |
JSONReader.of(JSONReader.Context context,
char[] chars)
Deprecated.
|
(package private) static JSONReaderASCII |
JSONReaderASCII.of(JSONReader.Context ctx,
java.io.InputStream is) |
static JSONReader |
JSONReader.of(JSONReader.Context context,
java.lang.String str)
Deprecated.
|
(package private) static JSONReaderASCII |
JSONReaderASCII.of(JSONReader.Context ctx,
java.lang.String str,
byte[] bytes,
int offset,
int length) |
static JSONReader |
JSONReader.of(java.io.Reader is,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(java.lang.String str,
int offset,
int length,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(java.lang.String str,
JSONReader.Context context) |
static JSONReader |
JSONReader.of(java.net.URL url,
JSONReader.Context context) |
static JSONReader |
JSONReader.ofJSONB(byte[] bytes,
int offset,
int length,
JSONReader.Context context) |
static JSONReader |
JSONReader.ofJSONB(byte[] jsonbBytes,
JSONReader.Context context) |
static JSONReader |
JSONReader.ofJSONB(java.io.InputStream in,
JSONReader.Context context) |
static JSONReader |
JSONReader.ofJSONB(JSONReader.Context context,
byte[] jsonbBytes)
Deprecated.
|
private static JSONReader |
JSONReader.ofUTF16(byte[] bytes,
int offset,
int length,
JSONReader.Context ctx) |
private static JSONReader |
JSONReader.ofUTF16(java.lang.String str,
char[] chars,
int offset,
int length,
JSONReader.Context ctx) |
static java.lang.Object |
JSON.parse(byte[] bytes,
int offset,
int length,
java.nio.charset.Charset charset,
JSONReader.Context context)
Parses the json byte array as a
JSONArray or JSONObject. |
static java.lang.Object |
JSON.parse(byte[] bytes,
JSONReader.Context context)
Parses the json byte array as a
JSONArray or JSONObject. |
static java.lang.Object |
JSONB.parse(byte[] jsonbBytes,
JSONReader.Context context)
Parses JSONB bytes to an object using the specified context
|
static java.lang.Object |
JSON.parse(char[] chars,
JSONReader.Context context)
Parses the json char array as a
JSONArray or JSONObject. |
static java.lang.Object |
JSON.parse(java.io.InputStream in,
java.nio.charset.Charset charset,
JSONReader.Context context)
Parses the json stream as a
JSONArray or JSONObject. |
static java.lang.Object |
JSON.parse(java.io.InputStream in,
JSONReader.Context context)
Parses the json stream as a
JSONArray or JSONObject. |
static java.lang.Object |
JSONB.parse(java.io.InputStream in,
JSONReader.Context context)
Parses JSONB from an input stream to an object using the specified context
|
static java.lang.Object |
JSON.parse(java.lang.String text,
JSONReader.Context context)
Parses the json string as a
JSONArray or JSONObject. |
static JSONArray |
JSON.parseArray(java.io.InputStream in,
java.nio.charset.Charset charset,
JSONReader.Context context)
Parses the json stream as a
JSONArray. |
static JSONArray |
JSONB.parseArray(java.io.InputStream in,
JSONReader.Context context)
Parses JSONB from an input stream to a JSONArray using the specified context
|
static <T> T |
JSON.parseObject(byte[] bytes,
java.lang.Class<T> clazz,
JSONReader.Context context)
Parses the json byte array as
T. |
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
java.lang.Class<T> objectClass,
JSONReader.Context context)
Parses JSONB bytes to an object of the specified class using the specified context
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
int off,
int len,
java.lang.reflect.Type objectType,
JSONReader.Context context)
Parses JSONB bytes with offset and length to an object of the specified type using the specified context
|
static <T> T |
JSON.parseObject(byte[] bytes,
java.lang.reflect.Type type,
JSONReader.Context context)
Parses the json string as
T. |
static <T> T |
JSON.parseObject(java.io.InputStream input,
java.nio.charset.Charset charset,
java.lang.Class<T> type,
JSONReader.Context context)
Parses the json stream as a
T. |
static JSONObject |
JSON.parseObject(java.io.InputStream input,
java.nio.charset.Charset charset,
JSONReader.Context context)
Parses the json stream as a
JSONObject. |
static <T> T |
JSON.parseObject(java.io.InputStream input,
java.nio.charset.Charset charset,
java.lang.reflect.Type type,
JSONReader.Context context)
Parses the json stream as a
T. |
static <T> T |
JSONB.parseObject(java.io.InputStream in,
java.lang.Class objectClass,
JSONReader.Context context)
Parses JSONB from an input stream to an object of the specified class using the specified context
|
static <T> T |
JSONB.parseObject(java.io.InputStream in,
int length,
java.lang.reflect.Type objectType,
JSONReader.Context context)
Parses JSONB from an input stream with specified length to an object of the specified type using the specified context
|
static JSONObject |
JSONB.parseObject(java.io.InputStream in,
JSONReader.Context context)
Parses JSONB bytes to a JSONObject using the specified context
|
static <T> T |
JSONB.parseObject(java.io.InputStream in,
java.lang.reflect.Type objectType,
JSONReader.Context context)
Parses JSONB from an input stream to an object of the specified type using the specified context
|
static <T> T |
JSON.parseObject(java.lang.String text,
java.lang.Class<T> clazz,
JSONReader.Context context)
Parses the json string as
T. |
static JSONObject |
JSON.parseObject(java.lang.String text,
int offset,
int length,
JSONReader.Context context)
Parses the json string as a
JSONObject. |
static JSONObject |
JSON.parseObject(java.lang.String text,
JSONReader.Context context)
Parses the json string as a
JSONObject. |
static <T> T |
JSON.parseObject(java.lang.String text,
java.lang.reflect.Type type,
JSONReader.Context context)
Parses the json string as
T. |
JSONPath |
JSONPath.setReaderContext(JSONReader.Context context)
Sets the reading context
|
| Constructor and Description |
|---|
JSONReader(JSONReader.Context context,
boolean jsonb,
boolean utf8)
Constructs a new JSONReader with the specified context and configuration.
|
JSONReaderASCII(JSONReader.Context ctx,
java.io.InputStream is) |
JSONReaderASCII(JSONReader.Context ctx,
java.lang.String str,
byte[] bytes,
int offset,
int length) |
JSONReaderJSONB(JSONReader.Context ctx,
byte[] bytes,
int off,
int length) |
JSONReaderJSONB(JSONReader.Context ctx,
java.io.InputStream is) |
JSONReaderUTF16(JSONReader.Context ctx,
byte[] bytes,
int offset,
int length) |
JSONReaderUTF16(JSONReader.Context ctx,
java.io.InputStream input) |
JSONReaderUTF16(JSONReader.Context ctx,
java.io.Reader input) |
JSONReaderUTF16(JSONReader.Context ctx,
java.lang.String str,
char[] chars,
int offset,
int length) |
JSONReaderUTF16(JSONReader.Context ctx,
java.lang.String str,
int offset,
int length) |
JSONReaderUTF8(JSONReader.Context ctx,
byte[] bytes,
int offset,
int length) |
JSONReaderUTF8(JSONReader.Context ctx,
java.nio.ByteBuffer buffer) |
JSONReaderUTF8(JSONReader.Context ctx,
java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
default ObjectReader |
ObjectReader.autoType(JSONReader.Context context,
long typeHash)
Resolves an ObjectReader for the specified type hash using the JSON reader context.
|
ObjectReader |
ObjectReaderAdapter.autoType(JSONReader.Context context,
long typeHash) |
java.util.Collection<V> |
FieldReaderList.createList(JSONReader.Context context) |
ObjectReader |
FieldReader.getItemObjectReader(JSONReader.Context ctx) |
ObjectReader |
FieldReader.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderDateTimeCodec.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderLocalDate.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderObject.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderOffsetDateTime.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderStringArray.getObjectReader(JSONReader.Context context) |
ObjectReader |
FieldReaderUUID.getObjectReader(JSONReader.Context context) |
| Modifier and Type | Field and Description |
|---|---|
(package private) static JSONReader.Context |
JSONSchema.CONTEXT |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONReader.Context |
JSONStreamReaderUTF16.context |
(package private) JSONReader.Context |
JSONStreamReaderUTF8.context |
| Modifier and Type | Field and Description |
|---|---|
private JSONReader.Context |
FastJsonConfig.readerContext
internal cache for JSONReader.Context, avoid repeatedly constructing new objects
|
| Modifier and Type | Method and Description |
|---|---|
JSONReader.Context |
FastJsonConfig.readerContext() |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONReader.Context |
JSONBCodec.JSONBDecoder.context |
(package private) JSONReader.Context |
JSONCodec.JSONDecoder.context |
| Constructor and Description |
|---|
JSONBCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext) |
JSONBCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.lang.reflect.Type valueType) |
JSONBDecoder(JSONReader.Context context,
java.lang.reflect.Type valueType) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.nio.charset.Charset charset) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.lang.reflect.Type valueType,
java.nio.charset.Charset charset) |
JSONDecoder(java.lang.reflect.Type valueType,
java.nio.charset.Charset charset,
JSONReader.Context context) |
JSONDecoder(java.lang.reflect.Type valueType,
JSONReader.Context context) |