public final class LimitsCheckingJSONObject
extends org.json.JSONObject
JSONObject that complies with limits in terms of value length, depth and number of elements.| Constructor and Description |
|---|
LimitsCheckingJSONObject(InputStream inputStream,
int maxJsonStringLength,
int maxNumOfImmediateChildren,
int maxDepth)
Constructs from an
InputStream |
LimitsCheckingJSONObject(Reader reader,
int maxJsonStringLength,
int maxNumOfImmediateChildren,
int maxDepth)
Constructs from a
Reader |
accumulate, append, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, writepublic LimitsCheckingJSONObject(Reader reader, int maxJsonStringLength, int maxNumOfImmediateChildren, int maxDepth)
Readerreader - a readermaxJsonStringLength - allowed maximum size of JSON keys and string valuesmaxNumOfImmediateChildren - allowed maximum number of keys (therefore key-value pairs) in JSON object, or items in JSON arraymaxDepth - allowed maximum depth of JSON objectpublic LimitsCheckingJSONObject(InputStream inputStream, int maxJsonStringLength, int maxNumOfImmediateChildren, int maxDepth)
InputStreaminputStream - the sourcemaxJsonStringLength - allowed maximum length of JSON keys and string valuesmaxNumOfImmediateChildren - allowed maximum number of keys (therefore key-value pairs) in JSON object, or items in JSON arraymaxDepth - allowed maximum depth of JSON objectCopyright © 2012–2020. All rights reserved.