net.minidev.json.parser
Class JSONParser

java.lang.Object
  extended by net.minidev.json.parser.JSONParserBase
      extended by net.minidev.json.parser.JSONParser

public class JSONParser
extends JSONParserBase

Parser for JSON text. Please note that JSONParser is NOT thread-safe.

Author:
Uriel Chemouni

Nested Class Summary
 
Nested classes/interfaces inherited from class net.minidev.json.parser.JSONParserBase
JSONParserBase.MSB
 
Field Summary
static byte EOI
           
 
Fields inherited from class net.minidev.json.parser.JSONParserBase
ACCEPT_LEADING_ZERO, ACCEPT_NAN, ACCEPT_NON_QUOTE, ACCEPT_SIMPLE_QUOTE, ACCEPT_USELESS_COMMA, acceptLeadinZero, acceptNaN, acceptNonQuote, acceptSimpleQuote, acceptUselessComma, containerFactory, handler, IGNORE_CONTROL_CHAR, ignoreControlChar, MODE_JSON_SIMPLE, MODE_PERMISSIVE, MODE_RFC4627, pos, sb, stopArray, stopKey, stopValue, stopX, USE_INTEGER_STORAGE, useIntegerStorage, xo, xs
 
Constructor Summary
JSONParser()
          Deprecated. prefer usage of new JSONParser(JSONParser.MODE_*)
JSONParser(int permissiveMode)
           
 
Method Summary
 Object parse(String in)
          use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
 Object parse(String in, ContainerFactory containerFactory)
          use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
 
Methods inherited from class net.minidev.json.parser.JSONParserBase
checkControleChar, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOI

public static final byte EOI
See Also:
Constant Field Values
Constructor Detail

JSONParser

public JSONParser()
Deprecated. prefer usage of new JSONParser(JSONParser.MODE_*)


JSONParser

public JSONParser(int permissiveMode)
Method Detail

parse

public Object parse(String in)
             throws ParseException
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory

Throws:
ParseException

parse

public Object parse(String in,
                    ContainerFactory containerFactory)
             throws ParseException
use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory

Throws:
ParseException


Copyright © 2011 Chemouni Uriel. All Rights Reserved.