dk.netarkivet.common.utils
Class StreamUtils

java.lang.Object
  extended by dk.netarkivet.common.utils.StreamUtils

public class StreamUtils
extends java.lang.Object

Utilities for handling streams.


Constructor Summary
StreamUtils()
           
 
Method Summary
static void copyInputStreamToOutputStream(java.io.InputStream in, java.io.OutputStream out)
          Will copy everything from input stream to output stream, closing input stream afterwards.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils

public StreamUtils()
Method Detail

copyInputStreamToOutputStream

public static void copyInputStreamToOutputStream(java.io.InputStream in,
                                                 java.io.OutputStream out)
Will copy everything from input stream to output stream, closing input stream afterwards.

Parameters:
in - Inputstream to copy from
out - Outputstream to copy to