public class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
readFully(InputStream in,
byte[] b)
Read into a byte array; tries to ensure that the the
full buffer is read.
|
static int |
readFully(InputStream in,
byte[] b,
int off,
int len)
Same as the normal in.read(b, off, len), but tries to ensure that
the entire len number of bytes is read.
|
public static int readFully(InputStream in, byte[] b) throws IOException
IOExceptionreadFully(java.io.InputStream, byte[], int, int)public static int readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOExceptionCopyright © The Apache Software Foundation. All Rights Reserved.