org.oddjob.util
Class IO

java.lang.Object
  extended by org.oddjob.util.IO

public class IO
extends Object

IO Utilities.


Constructor Summary
IO()
           
 
Method Summary
static boolean canSerialize(Object o)
          Can the object be serialized.
static void copy(InputStream in, OutputStream out)
          Copy from one stream to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

copy

public static void copy(InputStream in,
                        OutputStream out)
                 throws IOException
Copy from one stream to another.

Parameters:
in - InputStream.
out - OutputStream.
Throws:
IOException - If copy fails.

canSerialize

public static boolean canSerialize(Object o)
Can the object be serialized.

Parameters:
o - The object.
Returns:
true if it can, false if it can't.