org.apache.archiva.checksum
Class Checksum
java.lang.Object
org.apache.archiva.checksum.Checksum
public class Checksum
- extends Object
Checksum - simple checksum hashing routines.
- Version:
- $Id: Checksum.java 718864 2008-11-19 06:33:35Z brett $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
md
protected final MessageDigest md
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-2011 The Apache Software Foundation. All Rights Reserved.