railo.runtime.converter
Class JavaConverter
java.lang.Object
railo.runtime.converter.JavaConverter
public final class JavaConverter
- extends Object
JavaConverter
public JavaConverter()
serialize
public static String serialize(Object o)
throws IOException
- serialize a Java Object of Type Serializable
- Parameters:
o
-
- Returns:
- serialized String
- Throws:
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