org.eclipse.higgins.icard.registry.utils
Class DataUtils

java.lang.Object
  extended by org.eclipse.higgins.icard.registry.utils.DataUtils

public class DataUtils
extends Object


Constructor Summary
DataUtils()
           
 
Method Summary
static void copy(InputStream in, OutputStream out)
           
static void copy(InputStream in, OutputStream out, int bufferSize)
           
static void copy(Reader in, Writer out)
           
static void copy(Reader in, Writer out, int bufferSize)
           
static void copyAndClose(InputStream in, OutputStream out)
           
static byte[] readBytes(InputStream is)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUtils

public DataUtils()
Method Detail

readBytes

public static final byte[] readBytes(InputStream is)
                              throws IOException
Throws:
IOException

copyAndClose

public static final void copyAndClose(InputStream in,
                                      OutputStream out)
                               throws IOException
Throws:
IOException

copy

public static final void copy(InputStream in,
                              OutputStream out)
                       throws IOException
Throws:
IOException

copy

public static final void copy(InputStream in,
                              OutputStream out,
                              int bufferSize)
                       throws IOException
Throws:
IOException

copy

public static final void copy(Reader in,
                              Writer out)
                       throws IOException
Throws:
IOException

copy

public static final void copy(Reader in,
                              Writer out,
                              int bufferSize)
                       throws IOException
Throws:
IOException