railo.runtime.converter
Class JavaConverter

java.lang.Object
  extended by railo.runtime.converter.ConverterSupport
      extended by railo.runtime.converter.JavaConverter
All Implemented Interfaces:
BinaryConverter, StringConverter

public final class JavaConverter
extends ConverterSupport
implements BinaryConverter


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(Serializable o)
          serialize a Java Object of Type Serializable
static void serialize(Serializable o, OutputStream os)
           
static void serialize(Serializable o, Resource out)
           
 void writeOut(PageContext pc, Object source, OutputStream os)
           
 void writeOut(PageContext pc, Object source, Writer writer)
           
 
Methods inherited from class railo.runtime.converter.ConverterSupport
toConverterException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaConverter

public JavaConverter()
Method Detail

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