com.zeroturnaround.liverebel.util
Class ZipEntriesCheckSumCalculator

java.lang.Object
  extended by com.zeroturnaround.liverebel.util.ZipEntriesCheckSumCalculator
All Implemented Interfaces:
org.zeroturnaround.zip.ZipEntryCallback

public class ZipEntriesCheckSumCalculator
extends Object
implements org.zeroturnaround.zip.ZipEntryCallback

Calculates MD5 checksum based on each ZipEntry

Author:
Ats Uiboupin
See Also:
getChecksumsByEntryName()

Field Summary
protected  Map checksumsByEntryName
           
 
Constructor Summary
ZipEntriesCheckSumCalculator()
           
ZipEntriesCheckSumCalculator(Map checksumsByEntryName)
           
 
Method Summary
 Map getChecksumsByEntryName()
           
 void process(InputStream in, ZipEntry zipEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checksumsByEntryName

protected final Map checksumsByEntryName
Constructor Detail

ZipEntriesCheckSumCalculator

public ZipEntriesCheckSumCalculator()

ZipEntriesCheckSumCalculator

public ZipEntriesCheckSumCalculator(Map checksumsByEntryName)
Method Detail

process

public void process(InputStream in,
                    ZipEntry zipEntry)
             throws IOException
Specified by:
process in interface org.zeroturnaround.zip.ZipEntryCallback
Throws:
IOException

getChecksumsByEntryName

public Map getChecksumsByEntryName()


Copyright © 2012. All Rights Reserved.