public final class Streams extends Object
| Constructor and Description |
|---|
Streams() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drain(InputStream inStr) |
static void |
pipeAll(InputStream inStr,
OutputStream outStr) |
static long |
pipeAllLimited(InputStream inStr,
long limit,
OutputStream outStr) |
static byte[] |
readAll(InputStream inStr) |
static byte[] |
readAllLimited(InputStream inStr,
int limit) |
static int |
readFully(InputStream inStr,
byte[] buf) |
static int |
readFully(InputStream inStr,
byte[] buf,
int off,
int len) |
public static void drain(InputStream inStr) throws IOException
IOExceptionpublic static byte[] readAll(InputStream inStr) throws IOException
IOExceptionpublic static byte[] readAllLimited(InputStream inStr, int limit) throws IOException
IOExceptionpublic static int readFully(InputStream inStr, byte[] buf) throws IOException
IOExceptionpublic static int readFully(InputStream inStr, byte[] buf, int off, int len) throws IOException
IOExceptionpublic static void pipeAll(InputStream inStr, OutputStream outStr) throws IOException
IOExceptionpublic static long pipeAllLimited(InputStream inStr, long limit, OutputStream outStr) throws IOException
IOExceptionCopyright © 2015. All rights reserved.