ref_send API 2.17
defensive programming in Java

org.waterken.syntax
Interface Serializer

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

public interface Serializer
extends Powerless

An object serializer.


Method Summary
 ByteArray serialize(Exporter export, java.lang.reflect.Type type, java.lang.Object value)
          Serializes an object.
 ByteArray serializeTuple(Exporter export, ConstArray<java.lang.reflect.Type> types, ConstArray<?> values)
          Serializes a tuple.
 

Method Detail

serialize

ByteArray serialize(Exporter export,
                    java.lang.reflect.Type type,
                    java.lang.Object value)
                    throws java.lang.Exception
Serializes an object.

Parameters:
export - reference exporter
type - implict type for value
value - value to serialize
Returns:
serialized content
Throws:
java.lang.Exception

serializeTuple

ByteArray serializeTuple(Exporter export,
                         ConstArray<java.lang.reflect.Type> types,
                         ConstArray<?> values)
                         throws java.lang.Exception
Serializes a tuple.

Parameters:
export - reference exporter
types - each implict type for values
values - values to serialize
Returns:
serialized content
Throws:
java.lang.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.