src/share/classes/java/util/zip/Adler32.java

Print this page

        

*** 60,69 **** --- 60,74 ---- adler = update(adler, b); } /** * Updates the checksum with the specified array of bytes. + * + * @throws ArrayIndexOutOfBoundsException + * if {@code off} is negative, or {@code len} is negative, + * or {@code off+len} is greater than the length of the + * array {@code b} */ public void update(byte[] b, int off, int len) { if (b == null) { throw new NullPointerException(); }