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

Print this page

        

*** 58,67 **** --- 58,72 ---- crc = update(crc, b); } /** * Updates the CRC-32 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(); }