|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.waterken.syntax.json.JSONParser
public final class JSONParser
Deserializes a JSON text stream.
| Constructor Summary | |
|---|---|
JSONParser(java.lang.String base,
Importer connect,
java.lang.ClassLoader code,
java.io.Reader text)
Constructs an instance. |
|
| Method Summary | |
|---|---|
ConstArray<?> |
readTuple(java.lang.reflect.Type... parameters)
Deserializes an array of objects. |
java.lang.Object |
readValue(java.lang.reflect.Type type)
Deserializes an object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONParser(java.lang.String base,
Importer connect,
java.lang.ClassLoader code,
java.io.Reader text)
base - base URLconnect - reference importercode - class loadertext - UTF-8 JSON text stream| Method Detail |
|---|
public ConstArray<?> readTuple(java.lang.reflect.Type... parameters)
throws java.io.IOException,
BadSyntax
parameters - each expected type
java.io.IOException - any I/O error
BadSyntax - invalid JSON text
public java.lang.Object readValue(java.lang.reflect.Type type)
throws java.io.IOException,
BadSyntax
type - expected type
java.io.IOException - any I/O error
BadSyntax - invalid JSON text
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.