org.waterken.syntax.json
Class JSONDeserializer
java.lang.Object
org.joe_e.Struct
org.waterken.syntax.json.JSONDeserializer
- All Implemented Interfaces:
- java.io.Serializable, Immutable, Powerless, Selfless, Record, Deserializer
public final class JSONDeserializer
- extends Struct
- implements Deserializer, Record, java.io.Serializable
Deserializes a JSON byte stream.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
deserialize(java.io.InputStream content,
Importer connect,
java.lang.String base,
java.lang.ClassLoader code,
java.lang.reflect.Type type)
Deserializes an object. |
ConstArray<?> |
deserializeTuple(java.io.InputStream content,
Importer connect,
java.lang.String base,
java.lang.ClassLoader code,
java.lang.reflect.Type... types)
Deserializes an argument list. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
JSONDeserializer
public JSONDeserializer()
deserialize
public java.lang.Object deserialize(java.io.InputStream content,
Importer connect,
java.lang.String base,
java.lang.ClassLoader code,
java.lang.reflect.Type type)
throws java.io.IOException,
BadSyntax
- Description copied from interface:
Deserializer
- Deserializes an object.
- Specified by:
deserialize
in interface Deserializer
- Parameters:
content
- serialized content, will be closedconnect
- reference importerbase
- base URLcode
- class loadertype
- expected type of the referenced object
- Returns:
- deserialized object
- Throws:
java.io.IOException
BadSyntax
deserializeTuple
public ConstArray<?> deserializeTuple(java.io.InputStream content,
Importer connect,
java.lang.String base,
java.lang.ClassLoader code,
java.lang.reflect.Type... types)
throws java.lang.Exception
- Description copied from interface:
Deserializer
- Deserializes an argument list.
- Specified by:
deserializeTuple
in interface Deserializer
- Parameters:
content
- serialized content, will be closedconnect
- reference importerbase
- base URLcode
- class loadertypes
- expected type of each argument
- Returns:
- deserialized tuple
- Throws:
java.lang.Exception
- any exception
Submit a bug or feature, or get helpCopyright 1998-2009 Waterken Inc. under the terms of the MIT X license.