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
- IOException
public static void copy(InputStream is, OutputStream os) throws IOException
is
- os
- IOException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.