org.apache.archiva.checksum
Class Checksum
java.lang.Object
org.apache.archiva.checksum.Checksum
public class Checksum
- extends Object
Checksum - simple checksum hashing routines.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
private static final int BUFFER_SIZE
- See Also:
- Constant Field Values
md
protected final MessageDigest md
checksumAlgorithm
private ChecksumAlgorithm checksumAlgorithm
Checksum
public Checksum(ChecksumAlgorithm checksumAlgorithm)
update
public static void update(List<Checksum> checksums,
InputStream stream)
throws IOException
- Throws:
IOException
getChecksum
public String getChecksum()
getAlgorithm
public ChecksumAlgorithm getAlgorithm()
reset
public void reset()
update
public Checksum update(byte[] buffer,
int offset,
int size)
update
public Checksum update(InputStream stream)
throws IOException
- Throws:
IOException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.