TrueZIP Driver ZIP 7.0

de.schlichtherle.truezip.fs.archive.zip
Class CheckedZipDriver

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsDriver
      extended by de.schlichtherle.truezip.fs.archive.FsArchiveDriver<E>
          extended by de.schlichtherle.truezip.fs.archive.FsCharsetArchiveDriver<ZipArchiveEntry>
              extended by de.schlichtherle.truezip.fs.archive.zip.ZipDriver
                  extended by de.schlichtherle.truezip.fs.archive.zip.CheckedZipDriver
All Implemented Interfaces:
EntryFactory<ZipArchiveEntry>, ZipEntryFactory<ZipArchiveEntry>

@Immutable
public class CheckedZipDriver
extends ZipDriver

An archive driver for ZIP files which checks the CRC-32 values for all ZIP entries in input archives. The additional CRC-32 computation makes this class slower than its super class.

If there is a mismatch of the CRC-32 values for a ZIP entry in an input archive, the InputStream.close() method of the corresponding stream for the archive entry will throw a CRC32Exception. Other than this, the archive entry will be processed normally. So if just the CRC-32 value for the entry in the archive file has been modified, you can still read its entire contents.

Author:
Christian Schlichtherle
See Also:
CheckedZipInputShop

Constructor Summary
CheckedZipDriver(IOPoolProvider provider)
           
 
Method Summary
protected  ZipInputShop newZipInputShop(FsConcurrentModel model, ReadOnlyFile rof)
           
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.zip.ZipDriver
getLevel, getMethod, getPool, getPostambled, getPreambled, newEntry, newEntry, newEntry, newInputShop, newOutputShop, newZipOutputShop
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.FsCharsetArchiveDriver
assertEncodable, getCharset, toString, toZipOrTarEntryName
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.FsArchiveDriver
getClosedIcon, getOpenIcon, isFederated, newController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckedZipDriver

public CheckedZipDriver(IOPoolProvider provider)
Method Detail

newZipInputShop

protected ZipInputShop newZipInputShop(FsConcurrentModel model,
                                       ReadOnlyFile rof)
                                throws IOException
Overrides:
newZipInputShop in class ZipDriver
Throws:
IOException

TrueZIP Driver ZIP 7.0

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.