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
IOException
public static byte[] readAll(InputStream inStr) throws IOException
IOException
public static byte[] readAllLimited(InputStream inStr, int limit) throws IOException
IOException
public static int readFully(InputStream inStr, byte[] buf) throws IOException
IOException
public static int readFully(InputStream inStr, byte[] buf, int off, int len) throws IOException
IOException
public static void pipeAll(InputStream inStr, OutputStream outStr) throws IOException
IOException
public static long pipeAllLimited(InputStream inStr, long limit, OutputStream outStr) throws IOException
IOException
Copyright © 2015. All rights reserved.