TrueZIP 6.8.3

de.schlichtherle.io.archive.zip
Class ReadWriteSfxDriver

java.lang.Object
  extended by de.schlichtherle.io.archive.spi.AbstractArchiveDriver
      extended by de.schlichtherle.io.archive.zip.ZipDriver
          extended by de.schlichtherle.io.archive.zip.AbstractSfxDriver
              extended by 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
Author:
Christian Schlichtherle
See Also:
ReadOnlySfxDriver, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver
AbstractArchiveDriver.InconsistentCharsetSupportError
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class de.schlichtherle.io.archive.zip.AbstractSfxDriver
DEFAULT_CHARSET
 
Fields inherited from class de.schlichtherle.io.archive.zip.ZipDriver
DEFAULT_LEVEL, TEMP_FILE_PREFIX
 
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.
 
Method Summary
 
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 de.schlichtherle.io.archive.spi.AbstractArchiveDriver
ensureEncodable, getCharset, getClosedIcon, getEncoding, getOpenIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.io.archive.spi.ArchiveDriver
equals, hashCode
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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.


TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.