actually, InputStream wants an IIOBE here
@@ -71,7 +71,7 @@ public synchronized int read(final byte[] b, final int off, int len) throws IOEx
return 0;
}
if (off < 0 || len > b.length - off) {
- throw new IllegalArgumentException("offset or len are out of bounds");
+ throw new IndexOutOfBoundsException("offset or len are out of bounds");
}
if (len > end - loc) {
