public class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream is,
OutputStream os)
Copies all bytes from input stream to output stream.
|
static byte[] |
toByteArray(InputStream is)
Reads all bytes from an input stream to a byte array.
|
public static byte[] toByteArray(InputStream is) throws IOException
is - IOExceptionpublic static void copy(InputStream is, OutputStream os) throws IOException
is - os - IOExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.