|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.sentinel.json.java.JSONParserFactory
public class JSONParserFactory
Factory class for getting implementations of the JSONParser interface.
Constructor Summary | |
---|---|
protected |
JSONParserFactory()
|
Method Summary | |
---|---|
static JSONParserFactory |
newInstance()
Get an instance of a factory. |
JSONParser |
newParser(InputStream inputStream,
String charEncoding)
Get a new JSONParser instance for the passed input. |
JSONParser |
newParser(Reader reader)
Get a new JSONParser instance for the passed input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JSONParserFactory()
Method Detail |
---|
public static JSONParserFactory newInstance()
public JSONParser newParser(Reader reader)
reader
- The source from which the JSON input will be read.
public JSONParser newParser(InputStream inputStream, String charEncoding) throws UnsupportedEncodingException
inputStream
- The source from which the JSON input will be read.charEncoding
- The encoding of the input source.
UnsupportedEncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |