commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject [io] File checksum
Date Wed, 29 Mar 2006 09:46:47 GMT
Hi,

I have found myself recoding a file checksum function for several 
projects, I wonder if such a function could be added to [io]. Something 
like this:

     public static Checksum checksum(File file, Checksum cs)

the usage would look like this:

     long crc = FileUtils.checksum(file, new CRC32()).getValue();

What do you think ?

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message