Hi All, Currently, there is no readFully method in IOUtils, the method that is the same as the normal read(b, off, len) in java.io.InputStream, but tries to ensure that the entire len number of bytes are read.
There is a readFully method in java.io.DataInput. However, this method will throw EOFException if the end of file is reached before reading the specified length of bytes to buf. Following are the method signatures, public static int readFully(InputStream in, byte[] buf); public static int readFully(InputStream in, byte[] buf, int off, int len); My question is, why not add them to IOUtils? James --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org