de.schlichtherle.io.archive.zip
Class ReadWriteSfxDriver
java.lang.Object
de.schlichtherle.io.archive.spi.AbstractArchiveDriver
de.schlichtherle.io.archive.zip.ZipDriver
de.schlichtherle.io.archive.zip.AbstractSfxDriver
de.schlichtherle.io.archive.zip.ReadWriteSfxDriver
- All Implemented Interfaces:
- ArchiveDriver, Serializable
public class ReadWriteSfxDriver
- extends AbstractSfxDriver
An archive driver which reads and writes Self Executable (SFX/EXE) ZIP
files.
Warning: Modifying SFX archives usually voids the SFX code in the
preamble!
This is because most SFX implementations do not tolerate the contents of
the archive to be modified (by intention or accident).
When executing the SFX code of a modified archive, anything may happen:
The SFX code may be terminating with an error message, crash, silently
produce corrupted data, or even something more evil.
However, an archive modified with this driver is still a valid ZIP file.
So you may still extract the modified archive using a regular ZIP utility.
Instances of this class are immutable.
- Since:
- TrueZIP 6.0
- Version:
- $Id: ReadWriteSfxDriver.java 06f3ba684701 2010/11/04 01:15:55 christian $
- Author:
- Christian Schlichtherle
- See Also:
ReadOnlySfxDriver,
Serialized Form
|
Constructor Summary |
ReadWriteSfxDriver()
Equivalent to this(DEFAULT_CHARSET, null, null, false, DEFAULT_LEVEL). |
ReadWriteSfxDriver(int level)
Equivalent to this(DEFAULT_CHARSET, null, null, false, level). |
ReadWriteSfxDriver(String charset)
Equivalent to this(charset, null, null, false, DEFAULT_LEVEL). |
ReadWriteSfxDriver(String charset,
Icon openIcon,
Icon closedIcon,
boolean postambled,
int level)
Constructs a new read-write SFX/EXE driver. |
| Methods inherited from class de.schlichtherle.io.archive.zip.ZipDriver |
createArchiveEntry, createInputArchive, createOutputArchive, createZip32InputArchive, createZip32OutputArchive, createZipEntry, createZipEntry, createZipInputArchive, createZipOutputArchive, getLevel, getPostambled, getPreambled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
ReadWriteSfxDriver
public ReadWriteSfxDriver()
- Equivalent to
this(DEFAULT_CHARSET, null, null, false, DEFAULT_LEVEL).
ReadWriteSfxDriver
public ReadWriteSfxDriver(String charset)
- Equivalent to
this(charset, null, null, false, DEFAULT_LEVEL).
ReadWriteSfxDriver
public ReadWriteSfxDriver(int level)
- Equivalent to
this(DEFAULT_CHARSET, null, null, false, level).
ReadWriteSfxDriver
public ReadWriteSfxDriver(String charset,
Icon openIcon,
Icon closedIcon,
boolean postambled,
int level)
- Constructs a new read-write SFX/EXE driver.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.