|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sdicons.json.parser.JSONParser
public class JSONParser
Reads JSON text and convert it into a Java model for further handling.
Constructor Summary | |
---|---|
JSONParser(InputStream aStream)
Construct a parser using a stream. |
|
JSONParser(InputStream aStream,
String aStreamName)
Construct a parser using a stream. |
|
JSONParser(Reader aReader)
Construct a parser using a reader. |
|
JSONParser(Reader aReader,
String aStreamName)
Construct a parser using a reader. |
Method Summary | |
---|---|
JSONValue |
nextValue()
Read the next JSON structure from the stream and convert it into a Java model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONParser(InputStream aStream, String aStreamName)
aStream
- A stream containing JSON text.aStreamName
- A String that describes the stream, it will be attached to
all JSON objects in the model which are generated from this parser. This makes it
possible to identify the stream where the object came from.public JSONParser(InputStream aStream)
aStream
- A stream containing JSON text.public JSONParser(Reader aReader, String aStreamName)
aReader
- A reader containing JSON text.aStreamName
- A String that describes the stream, it will be attached to
all JSON objects in the model which are generated from this parser. This makes it
possible to identify the stream where the object came from.public JSONParser(Reader aReader)
aReader
- A reader containing JSON text.Method Detail |
---|
public JSONValue nextValue() throws antlr.TokenStreamException, antlr.RecognitionException
antlr.TokenStreamException
- A syntax error is encountered.
antlr.RecognitionException
- When a token could not be formed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |