@Immutable public class CheckedZipDriver extends ZipDriver
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.
Subclasses must be thread-safe and should be immutable!
| Constructor and Description |
|---|
CheckedZipDriver(IOPoolProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(ZipInputShop input,
ZipDriverEntry entry)
Whether or not the content of the given entry shall get
checked/authenticated when reading it.
|
decorate, getKeyManagerProvider, getKeyProviderSyncStrategy, getLevel, getMethod, getOutputSocket, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newController, newEntry, newEntry, newEntry, newInputShop, newInputShop, newOutputShop, newOutputShop, newOutputShop, process, resourceUri, zipCryptoParametersassertEncodable, getCharset, toString, toZipOrTarEntryNamegetInputSocket, isFederated, newController, newEntrygetPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOverheadSizegetCharsetpublic CheckedZipDriver(IOPoolProvider provider)
protected boolean check(ZipInputShop input, ZipDriverEntry entry)
true and the check fails,
then an IOException gets thrown.Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.