public class IOUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static int | 
readFully(InputStream in,
         byte[] b)
Helper method, just calls readFully(in, b, 0, b.length) 
 | 
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
IOExceptionpublic static int readFully(InputStream in, byte[] b, int off, int len) throws IOException
If the end of file is reached before any bytes are read, returns -1. Otherwise, returns the number of bytes read.
IOExceptionCopyright © 2014 Open Microscopy Environment