org.ijsberg.iglu.util.io
Class StreamSupport
java.lang.Object
org.ijsberg.iglu.util.io.StreamSupport
public abstract class StreamSupport
- extends Object
Helper class for stream related functions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUF_SIZE
public static int BUF_SIZE
StreamSupport
public StreamSupport()
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.