Constructor and Description |
---|
CRC32Ext()
Creates the basic object with default initial adler.
|
CRC32Ext(int crc)
Creates the basic object with the adler provided.
|
public CRC32Ext()
public CRC32Ext(int crc)
adler
- the number to use as starting point for the CRC-32 algorithmpublic void setAdler(int crc)
adler
- the number to use as current value for the CRC-32 algorithmpublic void update(int b)
update
in interface Checksum
Checksum.update(int)
public void update(byte[] b, int off, int len)
update
in interface Checksum
Checksum.update(int)
public void update(byte[] b)
Checksum.update(int)
public void reset()
reset
in interface Checksum
Checksum.reset()
public long getValue()
getValue
in interface Checksum
Checksum.getValue()
Copyright © 2001-2014 JRuby. All Rights Reserved.