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