org.jasen.util
Class IOUtils

java.lang.Object
  extended byorg.jasen.util.IOUtils

public final class IOUtils
extends Object

General IO utility methods.


Constructor Summary
IOUtils()
           
 
Method Summary
static void pipe(InputStream in, OutputStream out, int bufferSize)
          Simply pipes the data from the given input stream to the given output stream using the given transport buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

pipe

public static final void pipe(InputStream in,
                              OutputStream out,
                              int bufferSize)
                       throws IOException
Simply pipes the data from the given input stream to the given output stream using the given transport buffer.
NOTE: Neither stream is closed at the completion of this method, however the output stream IS flushed

Parameters:
in - The stream containing the source data
out - The stream to which data will be written
bufferSize - The size (in bytes) of the transport buffer to use
Throws:
IOException