public final class Streams extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static int |
copy(InputStream in,
OutputStream out) |
static byte[] |
copyToByteArray(InputStream in)
Copy the contents of the given InputStream into a new byte array.
|
public static final int BUFFER_SIZE
public static byte[] copyToByteArray(@Nullable InputStream in) throws IOException
IOExceptionpublic static int copy(InputStream in, OutputStream out) throws IOException
IOExceptionCopyright © 2020. All rights reserved.