Parent Directory | Revision Log | Patch
revision 1.24 by mkoch, Thu Apr 8 15:04:37 2004 UTC | revision 1.25 by mkoch, Fri Oct 1 09:53:12 2004 UTC | |
---|---|---|
# | Line 279 public class DataInputStream extends Fil | Line 279 public class DataInputStream extends Fil |
279 | */ | */ |
280 | public final void readFully (byte[] buf, int offset, int len) throws IOException | public final void readFully (byte[] buf, int offset, int len) throws IOException |
281 | { | { |
282 | if (len < 0) | |
283 | throw new IndexOutOfBoundsException("Negative length: " + len); | |
284 | ||
285 | while (len > 0) | while (len > 0) |
286 | { | { |
287 | // in.read will block until some data is available. | // in.read will block until some data is available. |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |