ref_send API 2.17
defensive programming in Java

org.waterken.syntax
Interface Deserializer

All Superinterfaces:
Immutable, Powerless
All Known Implementing Classes:
JSONDeserializer

public interface Deserializer
extends Powerless

An object deserializer.


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... parameters)
          Deserializes an argument list.
 

Method Detail

deserialize

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.lang.Exception
Deserializes an object.

Parameters:
content - serialized content, will be closed
connect - reference importer
base - base URL
code - class loader
type - expected type of the referenced object
Returns:
deserialized object
Throws:
java.lang.Exception - any exception

deserializeTuple

ConstArray<?> deserializeTuple(java.io.InputStream content,
                               Importer connect,
                               java.lang.String base,
                               java.lang.ClassLoader code,
                               java.lang.reflect.Type... parameters)
                               throws java.lang.Exception
Deserializes an argument list.

Parameters:
content - serialized content, will be closed
connect - reference importer
base - base URL
code - class loader
parameters - expected type of each argument
Returns:
deserialized tuple
Throws:
java.lang.Exception - any exception

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.