railo.runtime.converter
Class JavaConverter

java.lang.Object
  extended by railo.runtime.converter.JavaConverter

public final class JavaConverter
extends Object


Constructor Summary
JavaConverter()
           
 
Method Summary
static Object deserialize(InputStream is)
           
static Object deserialize(Resource res)
           
static Object deserialize(String str)
          unserialize a serialized Object
static String serialize(Object o)
          serialize a Java Object of Type Serializable
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaConverter

public JavaConverter()
Method Detail

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