archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joakim Erdfelt <>
Subject Re: [plexus work] archiva-checksums
Date Wed, 09 Apr 2008 04:54:42 GMT
Joakim Erdfelt wrote:
> I've been taking a stab and removing some of our dependencies on 
> various plexus components.
> First up, plexus-digest.
> I've taken the varied code from many locations and come up with a 
> stand alone archiva-checksum lib/component that I hope to be able to 
> integrate into archiva/trunk.
> So ... uhm ... consider this a call for discussion. ;-)
> - Joakim
Some more details...

These are 4 classes present in archiva-checksum
  1) org/apache/archiva/checksum/
  2) org/apache/archiva/checksum/
  3) org/apache/archiva/checksum/
  4) org/apache/archiva/checksum/

This is how the replacements work ...

Hash.class is an enum identifying the types of Hash functions (currently 
only SHA1 and MD5), with a few details on ids that the hash techniques 
  This is similar in scope, but not a 100% replacement for ...

Hasher.class is the main hashing routines, stream based, and has a few 
optimizations for performing bulk or group hashing based on a single 
stream, without processing the stream multiple times (one for each hash).
  Hasher.class replaces the following classes in plexus-digest

Hex.class is just a simple utility class to convert a byte array to a 
Hex string.
  It is a suitable replacement for plexus-digest

ChecksumFile.class is the file specific implementation, for dealing with 
the .md5 and .sha1 files (parsing, validating, creating, etc..)
  It is a replacement for plexus-digest
  And also covers the logic present in archiva-common too

- Joakim

View raw message