This project has retired. For details please refer to its
Attic page.
Checksum
org.apache.archiva.checksum
Class Checksum
java.lang.Object
org.apache.archiva.checksum.Checksum
public class Checksum
- extends java.lang.Object
Checksum - simple checksum hashing routines.
Field Summary |
protected java.security.MessageDigest |
md
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
md
protected final java.security.MessageDigest md
Checksum
public Checksum(ChecksumAlgorithm checksumAlgorithm)
update
public static void update(java.util.List<Checksum> checksums,
java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
getChecksum
public java.lang.String getChecksum()
getAlgorithm
public ChecksumAlgorithm getAlgorithm()
reset
public void reset()
update
public Checksum update(byte[] buffer,
int offset,
int size)
update
public Checksum update(java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException