public class ODSIOUtils
extends java.lang.Object
Constructor and Description |
---|
ODSIOUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
toByteArray(java.io.InputStream input)
Convert an input stream to byte array.
|
public static byte[] toByteArray(java.io.InputStream input) throws java.io.IOException
This is based on the function in the apache io commons IOUtil class.
input
- The input stream.java.io.IOException
- Throws IO Exception if a read error occurs.