edu.columbia.cs.ref.tool.io
Class SerializationHelper

java.lang.Object
  extended by edu.columbia.cs.ref.tool.io.SerializationHelper

public class SerializationHelper
extends java.lang.Object


Constructor Summary
SerializationHelper()
           
 
Method Summary
static java.lang.Object read(java.io.InputStream stream)
           
static java.lang.Object read(java.lang.String path)
           
static void write(java.io.OutputStream stream, java.lang.Object o)
           
static void write(java.lang.String path, java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationHelper

public SerializationHelper()
Method Detail

read

public static java.lang.Object read(java.io.InputStream stream)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

read

public static java.lang.Object read(java.lang.String path)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

write

public static void write(java.io.OutputStream stream,
                         java.lang.Object o)
                  throws java.io.IOException
Throws:
java.io.IOException

write

public static void write(java.lang.String path,
                         java.lang.Object o)
                  throws java.io.IOException
Throws:
java.io.IOException