public class IoUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readBytes(java.io.InputStream input)
Read the contents of the InputStream and return as a byte[].
|
public static byte[] readBytes(java.io.InputStream input)
throws java.io.IOException
input - - the InputStream to readAssertFailedException - - if the InputStream is nulljava.io.IOException - - if an error occurs reading the bytes