|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectargo.saj.SajParser
public final class SajParser
Converts a character stream into calls to a JsonListener.
SajParser are threadsafe in that concurrent calls to parse are safe, provided
each call is made with a different Reader and a different JsonListener.
JsonListener| Constructor Summary | |
|---|---|
SajParser()
|
|
| Method Summary | |
|---|---|
void |
parse(java.io.Reader in,
JsonListener jsonListener)
Parses the given character stream into calls to the given JsonListener. |
void |
parse(java.lang.String json,
JsonListener jsonListener)
Parses the given JSON String into calls to the given JsonListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SajParser()
| Method Detail |
|---|
public void parse(java.lang.String json,
JsonListener jsonListener)
throws java.io.IOException,
InvalidSyntaxException
String into calls to the given JsonListener.
json - the String to parse.jsonListener - the JsonListener to notify of parsing events
java.io.IOException - bubbled up from exceptions thrown reading from in
InvalidSyntaxException - thrown to indicate the characters read from in did not constitute valid JSON.
public void parse(java.io.Reader in,
JsonListener jsonListener)
throws java.io.IOException,
InvalidSyntaxException
in - the character stream to parsejsonListener - the JsonListener to notify of parsing events
java.io.IOException - bubbled up from exceptions thrown reading from in
InvalidSyntaxException - thrown to indicate the characters read from in did not constitute valid JSON.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||