public final class JavaConverter extends ConverterSupport implements BinaryConverter
Constructor and Description |
---|
JavaConverter() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(InputStream is) |
static Object |
deserialize(Resource res) |
static Object |
deserialize(String str)
unserialize a serialized Object
|
static String |
serialize(Serializable o)
serialize a Java Object of Type Serializable
|
static void |
serialize(Serializable o,
OutputStream os) |
static void |
serialize(Serializable o,
Resource out) |
static byte[] |
serializeAsBinary(Serializable o) |
void |
writeOut(PageContext pc,
Object source,
OutputStream os) |
void |
writeOut(PageContext pc,
Object source,
Writer writer) |
toConverterException
public JavaConverter()
public void writeOut(PageContext pc, Object source, Writer writer) throws ConverterException, IOException
writeOut
in interface StringConverter
ConverterException
IOException
public void writeOut(PageContext pc, Object source, OutputStream os) throws ConverterException, IOException
writeOut
in interface BinaryConverter
ConverterException
IOException
public static String serialize(Serializable o) throws IOException
o
- IOException
public static byte[] serializeAsBinary(Serializable o) throws IOException
IOException
public static void serialize(Serializable o, Resource out) throws IOException
IOException
public static void serialize(Serializable o, OutputStream os) throws IOException
IOException
public static Object deserialize(String str) throws IOException, ClassNotFoundException, CoderException
str
- IOException
ClassNotFoundException
CoderException
public static Object deserialize(InputStream is) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static Object deserialize(Resource res) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2015 Lucee