|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.util.Adler32Ext
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 | |
Adler32Ext()
Creates the basic object with default initial adler. |
|
Adler32Ext(int adler)
Creates the basic object with the adler provided. |
Method Summary | |
long |
getValue()
|
void |
reset()
|
void |
setAdler(int adler)
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 Adler32Ext()
public Adler32Ext(int adler)
adler
- the number to use as starting point for the Adler-32 algorithmMethod Detail |
public void setAdler(int adler)
adler
- the number to use as current value for the Adler-32 algorithmpublic void update(int b)
update
in interface java.util.zip.Checksum
Checksum.update(int)
public void update(byte[] b, int off, int len)
update
in interface java.util.zip.Checksum
Checksum.update(int)
public void update(byte[] b)
Checksum.update(int)
public void reset()
reset
in interface java.util.zip.Checksum
Checksum.reset()
public long getValue()
getValue
in interface java.util.zip.Checksum
Checksum.getValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |