TrueZIP Driver ZIP 7.0

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

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.JarDriver
                      extended by de.schlichtherle.truezip.fs.archive.zip.OdfDriver
                          extended by de.schlichtherle.truezip.fs.archive.zip.CheckedOdfDriver
All Implemented Interfaces:
EntryFactory<ZipArchiveEntry>, ZipEntryFactory<ZipArchiveEntry>

@Immutable
public class CheckedOdfDriver
extends OdfDriver

An archive driver for ODF files which checks the CRC-32 value 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

Field Summary
 
Fields inherited from class de.schlichtherle.truezip.fs.archive.zip.JarDriver
JAR_CHARSET
 
Constructor Summary
CheckedOdfDriver(IOPoolProvider provider)
           
 
Method Summary
protected  ZipInputShop newZipInputShop(FsConcurrentModel model, ReadOnlyFile rof)
           
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.zip.OdfDriver
newOutputShop
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.zip.JarDriver
newEntry, newEntry, newEntry
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.zip.ZipDriver
getLevel, getMethod, getPool, getPostambled, getPreambled, newInputShop, 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

CheckedOdfDriver

public CheckedOdfDriver(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.