@Immutable public class CheckedReadOnlySfxDriver extends ReadOnlySfxDriver
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!
SFX_CHARSET
Constructor and Description |
---|
CheckedReadOnlySfxDriver(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.
|
getPreambled, newOutputShop
decorate, getKeyManagerProvider, getKeyProviderSyncStrategy, getLevel, getMethod, getOutputSocket, getPool, getPostambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newController, newEntry, newEntry, newEntry, newInputShop, newInputShop, newOutputShop, newOutputShop, process, resourceUri, zipCryptoParameters
assertEncodable, getCharset, toString, toZipOrTarEntryName
getInputSocket, isFederated, newController, newEntry
getPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOverheadSize
getCharset
public CheckedReadOnlySfxDriver(IOPoolProvider provider)
protected boolean check(ZipInputShop input, ZipDriverEntry entry)
true
and the check fails,
then an IOException
gets thrown.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.