| java.lang.Object org.apache.poi.util.IOUtils
IOUtils | public class IOUtils (Code) | | |
Method Summary | |
public static int | readFully(InputStream in, byte[] b) | public 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 byte[] | toByteArray(InputStream stream) Reads all the data from the input stream, and returns
the bytes read. |
readFully | public static int readFully(InputStream in, byte[] b) throws IOException(Code) | | Helper method, just calls readFully(in, b, 0, b.length)
|
readFully | public static int readFully(InputStream in, byte[] b, int off, int len) throws IOException(Code) | | Same as the normal in.read(b, off, len), but tries to ensure that
the entire len number of bytes is read.
If the end of file is reached before any bytes are read, returns -1.
Otherwise, returns the number of bytes read.
|
toByteArray | public static byte[] toByteArray(InputStream stream) throws IOException(Code) | | Reads all the data from the input stream, and returns
the bytes read.
|
|
|