org.ijsberg.iglu.util.io
Class StreamSupport

java.lang.Object
  extended by org.ijsberg.iglu.util.io.StreamSupport

public abstract class StreamSupport
extends Object

Helper class for stream related functions.


Field Summary
static int BUF_SIZE
           
 
Constructor Summary
StreamSupport()
           
 
Method Summary
static byte[] absorbInputStream(InputStream input)
          Reads all bytes from an input stream.
static void absorbInputStream(InputStream input, OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUF_SIZE

public static int BUF_SIZE
Constructor Detail

StreamSupport

public StreamSupport()
Method Detail

absorbInputStream

public static byte[] absorbInputStream(InputStream input)
                                throws IOException
Reads all bytes from an input stream.

Parameters:
input -
Returns:
Throws:
IOException

absorbInputStream

public static void absorbInputStream(InputStream input,
                                     OutputStream output)
                              throws IOException
Parameters:
input -
output -
Throws:
IOException


Copyright © 2011. All Rights Reserved.