de.schlichtherle.truezip.fs.archive.zip
Class CheckedJarDriver
java.lang.Object
de.schlichtherle.truezip.fs.FsDriver
de.schlichtherle.truezip.fs.archive.FsArchiveDriver<E>
de.schlichtherle.truezip.fs.archive.FsCharsetArchiveDriver<ZipArchiveEntry>
de.schlichtherle.truezip.fs.archive.zip.ZipDriver
de.schlichtherle.truezip.fs.archive.zip.JarDriver
de.schlichtherle.truezip.fs.archive.zip.CheckedJarDriver
- All Implemented Interfaces:
- EntryFactory<ZipArchiveEntry>, ZipEntryFactory<ZipArchiveEntry>
@Immutable
public class CheckedJarDriver
- extends JarDriver
An archive driver for JAR 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
CheckedJarDriver
public CheckedJarDriver(IOPoolProvider provider)
newZipInputShop
protected ZipInputShop newZipInputShop(FsConcurrentModel model,
ReadOnlyFile rof)
throws IOException
- Overrides:
newZipInputShop in class ZipDriver
- Throws:
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.