|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.util.CRC32Ext
public class CRC32Ext
This class is a wrapper around Adler32 which provides the capability to update the running total. This functionality is provided by quite risky reflection and should be fixed in a better way later on.
| Constructor Summary | |
|---|---|
CRC32Ext()
Creates the basic object with default initial adler. |
|
CRC32Ext(int crc)
Creates the basic object with the adler provided. |
|
| Method Summary | |
|---|---|
long |
getValue()
|
void |
reset()
|
void |
setAdler(int crc)
Sets the adler running total to the specified value. |
void |
update(byte[] b)
|
void |
update(byte[] b,
int off,
int len)
|
void |
update(int b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRC32Ext()
public CRC32Ext(int crc)
adler - the number to use as starting point for the CRC-32 algorithm| Method Detail |
|---|
public void setAdler(int crc)
adler - the number to use as current value for the CRC-32 algorithmpublic void update(int b)
update in interface java.util.zip.ChecksumChecksum.update(int)
public void update(byte[] b,
int off,
int len)
update in interface java.util.zip.ChecksumChecksum.update(int)public void update(byte[] b)
Checksum.update(int)public void reset()
reset in interface java.util.zip.ChecksumChecksum.reset()public long getValue()
getValue in interface java.util.zip.ChecksumChecksum.getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||