Package net.minidev.json.parser
Class JSONParserBase
java.lang.Object
net.minidev.json.parser.JSONParserBase
- Direct Known Subclasses:
JSONParserMemory
,JSONParserStream
JSONParserBase is the common code between
JSONParserString
and
JSONParserReader
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final boolean
protected final boolean
protected final boolean
protected final boolean
(package private) JsonReader
protected char
protected final boolean
protected final boolean
static final byte
protected final boolean
private String
protected static final char
protected int
protected final JSONParserBase.MSB
protected static boolean[]
protected static boolean[]
protected static boolean[]
protected static boolean[]
protected static boolean[]
protected final boolean
protected final boolean
protected Object
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected Number
protected <T> T
parse
(JsonReaderI<T> mapper) use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected Number
protected abstract void
read()
protected <T> T
readArray
(JsonReaderI<T> mapper) protected <T> T
readFirst
(JsonReaderI<T> mapper) use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected Object
readMain
(JsonReaderI<?> mapper, boolean[] stop) use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactoryprotected abstract void
protected abstract void
readNQString
(boolean[] stop) protected abstract Object
readNumber
(boolean[] stop) protected <T> T
readObject
(JsonReaderI<T> mapper) (package private) abstract void
readS()
store and readprotected abstract void
protected void
protected char
readUnicode
(int totalChars) protected void
protected void
skipNQString
(boolean[] stop) protected void
-
Field Details
-
c
protected char c -
base
JsonReader base -
EOI
public static final byte EOI- See Also:
-
MAX_STOP
protected static final char MAX_STOP- See Also:
-
lastKey
-
stopAll
protected static boolean[] stopAll -
stopArray
protected static boolean[] stopArray -
stopKey
protected static boolean[] stopKey -
stopValue
protected static boolean[] stopValue -
stopX
protected static boolean[] stopX -
sb
-
xo
-
xs
-
pos
protected int pos -
acceptLeadinZero
protected final boolean acceptLeadinZero -
acceptNaN
protected final boolean acceptNaN -
acceptNonQuote
protected final boolean acceptNonQuote -
acceptSimpleQuote
protected final boolean acceptSimpleQuote -
acceptUselessComma
protected final boolean acceptUselessComma -
checkTaillingData
protected final boolean checkTaillingData -
checkTaillingSpace
protected final boolean checkTaillingSpace -
ignoreControlChar
protected final boolean ignoreControlChar -
useHiPrecisionFloat
protected final boolean useHiPrecisionFloat -
useIntegerStorage
protected final boolean useIntegerStorage
-
-
Constructor Details
-
JSONParserBase
public JSONParserBase(int permissiveMode)
-
-
Method Details
-
checkControleChar
- Throws:
ParseException
-
checkLeadinZero
- Throws:
ParseException
-
extractFloat
- Throws:
ParseException
-
parse
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
-
parseNumber
- Throws:
ParseException
-
read
- Throws:
IOException
-
readArray
- Throws:
ParseException
IOException
-
readFirst
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
IOException
-
readMain
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory- Throws:
ParseException
IOException
-
readNoEnd
- Throws:
ParseException
IOException
-
readNQString
- Throws:
IOException
-
readNumber
- Throws:
ParseException
IOException
-
readObject
- Throws:
ParseException
IOException
-
readS
store and read- Throws:
IOException
-
readString
- Throws:
ParseException
IOException
-
readString2
- Throws:
ParseException
IOException
-
readUnicode
- Throws:
ParseException
IOException
-
skipDigits
- Throws:
IOException
-
skipNQString
- Throws:
IOException
-
skipSpace
- Throws:
IOException
-