@Immutable public class CheckedJarDriver extends JarDriver
If there is a mismatch of the CRC32 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 CRC32 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!
JAR_CHARSET
Constructor and Description |
---|
CheckedJarDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
check(JarDriverEntry local,
ZipInputService<JarDriverEntry> input)
Whether or not the content of the given entry shall get
checked/authenticated when reading it.
|
getCharset, newEntry, newEntry
decorate, fileSystemUri, getKeyManagerMap, getLevel, getMethod, getOverheadSize, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newEntry, newInput, newOutput, newZipInput, rdc, sink, zipCryptoParameters
checkEncodable, isArchiveDriver, newController, newEntry, newInput, newOutput, normalize, source, toString
public boolean check(JarDriverEntry local, ZipInputService<JarDriverEntry> input)
true
and the check fails, then an
IOException
gets thrown.check
in class AbstractZipDriver<JarDriverEntry>
local
- the entry to test.input
- the origin of the entry.true
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.