@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class CheckedJarDriver extends JarDriver
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.
JAR_CHARSET| Constructor and Description |
|---|
CheckedJarDriver(IOPoolProvider ioPoolProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(ZipInputShop input,
ZipArchiveEntry entry)
Whether or not the content of the given entry shall get
checked/authenticated when reading it.
|
getKeyManagerProvider, getKeyProviderSyncStrategy, getLevel, getMethod, getOutputSocket, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newController, newEntry, newInputShop, newInputShop, newOutputShop, newOutputShop, newOutputShop, process, process, process, resourceUri, superNewController, zipCryptoParameters, zipCryptoParameters, zipCryptoParametersassertEncodable, getCharset, toString, toZipOrTarEntryNamegetClosedIcon, getInputSocket, getOpenIcon, isFederated, newEntry, newInputStream, newOutputStream, newReadOnlyFilegetPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOverheadSizegetCharsetpublic CheckedJarDriver(IOPoolProvider ioPoolProvider)
protected boolean check(ZipInputShop input, ZipArchiveEntry entry)
true and the check fails,
then an IOException gets thrown.Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.