jdk/src/share/classes/java/util/zip/CRC32.java
changeset 19415 af60b1abf237
parent 14342 8435a30053c1
child 23010 6dadb192ad81
equal deleted inserted replaced
19414:931c01c5c3aa 19415:af60b1abf237
    58         crc = update(crc, b);
    58         crc = update(crc, b);
    59     }
    59     }
    60 
    60 
    61     /**
    61     /**
    62      * Updates the CRC-32 checksum with the specified array of bytes.
    62      * Updates the CRC-32 checksum with the specified array of bytes.
       
    63      *
       
    64      * @throws  ArrayIndexOutOfBoundsException
       
    65      *          if {@code off} is negative, or {@code len} is negative,
       
    66      *          or {@code off+len} is greater than the length of the
       
    67      *          array {@code b}
    63      */
    68      */
    64     public void update(byte[] b, int off, int len) {
    69     public void update(byte[] b, int off, int len) {
    65         if (b == null) {
    70         if (b == null) {
    66             throw new NullPointerException();
    71             throw new NullPointerException();
    67         }
    72         }