@Immutable public class ReadOnlySfxDriver extends ZipDriver
Subclasses must be thread-safe and should be immutable!
Modifier and Type | Field and Description |
---|---|
static Charset |
SFX_CHARSET
The character set used in SFX archives by default, which is determined
by calling
System.getProperty("file.encoding") . |
Constructor and Description |
---|
ReadOnlySfxDriver(IOPoolProvider provider) |
Modifier and Type | Method and Description |
---|---|
boolean |
getPreambled()
Returns the flag for allowing a preamble.
|
protected OutputShop<ZipDriverEntry> |
newOutputShop(FsModel model,
OptionOutputSocket output,
ZipInputShop source) |
check, 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 static final Charset SFX_CHARSET
System.getProperty("file.encoding")
.public ReadOnlySfxDriver(IOPoolProvider provider)
public final boolean getPreambled()
If this method returns true
, then a ZIP file is allowed to
contain arbitrary data as its preamble before the actual ZIP file data.
Self Extracting Archives typically use a preamble to store the
application code that is required to extract the ZIP file contents.
If this method returns false
, the a ZIP file must start with
either a Local File Header (LFH) signature,
a ZIP64 End Of Central Directory Record (EOCDR) signature or an End Of
Central Directory Record (EOCDR) signature.
The implementation in the class ZipDriver
returns false
.
The implementation in the class ZipDriver
returns true
.
getPreambled
in interface ZipFileParameters<ZipDriverEntry>
getPreambled
in class ZipDriver
true
protected final OutputShop<ZipDriverEntry> newOutputShop(FsModel model, OptionOutputSocket output, ZipInputShop source) throws IOException
newOutputShop
in class ZipDriver
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.