public class IoUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readBytes(InputStream input)
Read the contents of the InputStream and return as a byte[].
|
public static byte[] readBytes(InputStream input) throws IOException
input - - the InputStream to readAssertFailedException - - if the InputStream is nullIOException - - if an error occurs reading the bytesCopyright © 2016. All rights reserved.