de.schlichtherle.truezip.fs.archive.zip
Class ReadOnlySfxDriver
java.lang.Object
de.schlichtherle.truezip.fs.FsDriver
de.schlichtherle.truezip.fs.archive.FsArchiveDriver<E>
de.schlichtherle.truezip.fs.archive.FsCharsetArchiveDriver<ZipArchiveEntry>
de.schlichtherle.truezip.fs.archive.zip.ZipDriver
de.schlichtherle.truezip.fs.archive.zip.ReadOnlySfxDriver
- All Implemented Interfaces:
- ZipEntryFactory<ZipArchiveEntry>
- Direct Known Subclasses:
- CheckedReadOnlySfxDriver
@Immutable
public class ReadOnlySfxDriver
- extends ZipDriver
An archive driver which reads Self Executable (SFX/EXE) ZIP files,
but doesn't support to create or update them because this would spoil the
SFX code in its preamble.
- Author:
- Christian Schlichtherle
|
Field Summary |
static Charset |
SFX_CHARSET
The character set used in SFX archives by default, which is determined
by calling System.getProperty("file.encoding"). |
| Methods inherited from class de.schlichtherle.truezip.fs.archive.zip.ZipDriver |
getLevel, getMethod, getOutputSocket, getPool, getPostambled, newEntry, newEntry, newEntry, newInputShop, newOutputShop, newZipInputShop |
SFX_CHARSET
public static final Charset SFX_CHARSET
- The character set used in SFX archives by default, which is determined
by calling
System.getProperty("file.encoding").
ReadOnlySfxDriver
public ReadOnlySfxDriver(IOPoolProvider provider)
getPreambled
public final boolean getPreambled()
- Description copied from class:
ZipDriver
- Returns the value of the property
preambled.
If this is 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.
Note that searching for a preamble can seriously degrade the performance
if the file is not compatible to the ZIP File Format Specification.
The implementation in the class ZipDriver returns false.
- Overrides:
getPreambled in class ZipDriver
- Returns:
- The value of the property
preambled.
newZipOutputShop
protected ZipOutputShop newZipOutputShop(FsModel model,
OutputStream out,
ZipInputShop source)
throws IOException
- Overrides:
newZipOutputShop in class ZipDriver
- Throws:
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.