net.minidev.json.parser
Class JSONParserStream

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

public class JSONParserStream
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 int 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
JSONParserStream()
          Deprecated. prefer usage of new JSONParserStream(JSONParser.MODE_*)
JSONParserStream(int permissifMode)
           
 
Method Summary
 Object parse(Reader in)
          use to return Primitive Type, or String, Or JsonObject or JsonArray generated by a ContainerFactory
 Object parse(Reader 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 int EOI
See Also:
Constant Field Values
Constructor Detail

JSONParserStream

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


JSONParserStream

public JSONParserStream(int permissifMode)
Method Detail

parse

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

Throws:
ParseException

parse

public Object parse(Reader 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.