|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minidev.json.parser.JSONParserBase
public abstract class JSONParserBase
JSONParserBase is the common code between JSONParser
and
JSONParserStream
JSONParser
,
JSONParserStream
Nested Class Summary | |
---|---|
static class |
JSONParserBase.MSB
|
Field Summary | |
---|---|
static int |
ACCEPT_LEADING_ZERO
Throws exception on excessive 0 leading in digits |
static int |
ACCEPT_NAN
Parse NaN as Float.NaN |
static int |
ACCEPT_NON_QUOTE
allow non quoted test |
static int |
ACCEPT_SIMPLE_QUOTE
allow simple quote as String quoting char |
static int |
ACCEPT_USELESS_COMMA
Throws exception on useless comma in object and array |
protected boolean |
acceptLeadinZero
|
protected boolean |
acceptNaN
|
protected boolean |
acceptNonQuote
|
protected boolean |
acceptSimpleQuote
|
protected boolean |
acceptUselessComma
|
protected ContainerFactory |
containerFactory
|
protected ContentHandler |
handler
|
static int |
IGNORE_CONTROL_CHAR
Ignore control char in input text. |
protected boolean |
ignoreControlChar
|
static int |
MODE_JSON_SIMPLE
Parse Object like json-simple Best for an iso-bug json-simple API port. |
static int |
MODE_PERMISSIVE
smart mode, fastest parsing mode. accept lots of non standard json syntax |
static int |
MODE_RFC4627
strict RFC4627 mode. |
protected int |
pos
|
protected JSONParserBase.MSB |
sb
|
protected static boolean[] |
stopArray
|
protected static boolean[] |
stopKey
|
protected static boolean[] |
stopValue
|
protected static boolean[] |
stopX
|
static int |
USE_INTEGER_STORAGE
Use int datatype to store number when it's possible. |
protected boolean |
useIntegerStorage
|
protected Object |
xo
|
protected String |
xs
|
Constructor Summary | |
---|---|
JSONParserBase(int permissiveMode)
|
Method Summary | |
---|---|
void |
checkControleChar()
|
void |
setHandler(ContentHandler handler)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean[] stopArray
protected static boolean[] stopKey
protected static boolean[] stopValue
protected static boolean[] stopX
public static final int ACCEPT_SIMPLE_QUOTE
public static final int ACCEPT_NON_QUOTE
public static final int ACCEPT_NAN
public static final int IGNORE_CONTROL_CHAR
public static final int USE_INTEGER_STORAGE
public static final int ACCEPT_LEADING_ZERO
public static final int ACCEPT_USELESS_COMMA
public static final int MODE_PERMISSIVE
public static final int MODE_RFC4627
public static final int MODE_JSON_SIMPLE
protected ContainerFactory containerFactory
protected ContentHandler handler
protected final JSONParserBase.MSB sb
protected String xs
protected Object xo
protected int pos
protected final boolean acceptSimpleQuote
protected final boolean acceptNonQuote
protected final boolean acceptNaN
protected final boolean ignoreControlChar
protected final boolean useIntegerStorage
protected final boolean acceptLeadinZero
protected final boolean acceptUselessComma
Constructor Detail |
---|
public JSONParserBase(int permissiveMode)
Method Detail |
---|
public void setHandler(ContentHandler handler)
public void checkControleChar() throws ParseException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |