|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.util.IOUtils
public class IOUtils
Method Summary | |
---|---|
static int |
readFully(java.io.InputStream in,
byte[] b)
Helper method, just calls readFully(in, b, 0, b.length) |
static int |
readFully(java.io.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. |
static byte[] |
toByteArray(java.io.InputStream stream)
Reads all the data from the input stream, and returns the bytes read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] toByteArray(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public static int readFully(java.io.InputStream in, byte[] b) throws java.io.IOException
java.io.IOException
public static int readFully(java.io.InputStream in, byte[] b, int off, int len) throws java.io.IOException
If the end of file is reached before any bytes are read, returns -1. If the end of the file is reached after some bytes are read, returns the number of bytes read. If the end of the file isn't reached before len bytes have been read, will return len bytes.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |