|
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.Object org.joe_e.Struct org.waterken.syntax.json.JSONSerializer
public final class JSONSerializer
Serializes an array of Java objects to a JSON byte stream.
Constructor Summary | |
---|---|
JSONSerializer()
|
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. |
static void |
write(Exporter export,
java.lang.reflect.Type type,
java.lang.Object value,
java.io.Writer text)
Serializes a stream of Java objects to a JSON text stream. |
Methods inherited from class org.joe_e.Struct |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.joe_e.Selfless |
---|
hashCode |
Constructor Detail |
---|
public JSONSerializer()
Method Detail |
---|
public ByteArray serialize(Exporter export, java.lang.reflect.Type type, java.lang.Object value) throws java.lang.Exception
Serializer
serialize
in interface Serializer
export
- reference exportertype
- implict type for value
value
- value to serialize
java.lang.Exception
public ByteArray serializeTuple(Exporter export, ConstArray<java.lang.reflect.Type> types, ConstArray<?> values) throws java.lang.Exception
Serializer
serializeTuple
in interface Serializer
export
- reference exportertypes
- each implict type for values
values
- values to serialize
java.lang.Exception
public static void write(Exporter export, java.lang.reflect.Type type, java.lang.Object value, java.io.Writer text) throws java.lang.Exception
export
- reference exportertype
- implicit type for value
value
- value to serializetext
- UTF-8 text output, will be flushed and closed
java.lang.Exception
|
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.