railo.runtime.converter
Class JavaConverter
java.lang.Object
railo.runtime.converter.ConverterSupport
railo.runtime.converter.JavaConverter
- All Implemented Interfaces:
- BinaryConverter, StringConverter
public final class JavaConverter
- extends ConverterSupport
- implements BinaryConverter
JavaConverter
public JavaConverter()
writeOut
public void writeOut(PageContext pc,
Object source,
Writer writer)
throws ConverterException,
IOException
- Specified by:
writeOut
in interface StringConverter
- Throws:
ConverterException
IOException
writeOut
public void writeOut(PageContext pc,
Object source,
OutputStream os)
throws ConverterException,
IOException
- Specified by:
writeOut
in interface BinaryConverter
- Throws:
ConverterException
IOException
serialize
public static String serialize(Serializable o)
throws IOException
- serialize a Java Object of Type Serializable
- Parameters:
o
-
- Returns:
- serialized String
- Throws:
IOException
serialize
public static void serialize(Serializable o,
Resource out)
throws IOException
- Throws:
IOException
serialize
public static void serialize(Serializable o,
OutputStream os)
throws IOException
- Throws:
IOException
deserialize
public static Object deserialize(String str)
throws IOException,
ClassNotFoundException,
CoderException
- unserialize a serialized Object
- Parameters:
str
-
- Returns:
- unserialized Object
- Throws:
IOException
ClassNotFoundException
CoderException
deserialize
public static Object deserialize(InputStream is)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
deserialize
public static Object deserialize(Resource res)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
Copyright © 2012 Railo