TrueZIP 6.8

de.schlichtherle.io.archive.zip
Class ReadOnlySfxDriver

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.ReadOnlySfxDriver
All Implemented Interfaces:
ArchiveDriver, Serializable
Direct Known Subclasses:
CheckedReadOnlySfxDriver

public class ReadOnlySfxDriver
extends AbstractSfxDriver

An archive driver which reads Self Executable (SFX/EXE) ZIP files, but doesn't support to create or update them.

Instances of this class are immutable.

Since:
TrueZIP 6.0
Version:
$Id: ReadOnlySfxDriver.java,v 1.3 2010/08/16 10:55:44 christian_schlichtherle Exp $
Author:
Christian Schlichtherle
See Also:
CheckedReadOnlySfxDriver, ReadWriteSfxDriver, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver
AbstractArchiveDriver.InconsistentCharsetSupportError
 
Field Summary
 
Fields inherited from class de.schlichtherle.io.archive.zip.AbstractSfxDriver
DEFAULT_CHARSET
 
Fields inherited from class de.schlichtherle.io.archive.zip.ZipDriver
DEFAULT_LEVEL
 
Constructor Summary
ReadOnlySfxDriver()
          Equivalent to this(DEFAULT_CHARSET, null, null, false, DEFAULT_LEVEL).
ReadOnlySfxDriver(int level)
          Equivalent to this(DEFAULT_CHARSET, null, null, false, level).
ReadOnlySfxDriver(String charset)
          Equivalent to this(charset, null, null, false, DEFAULT_LEVEL).
ReadOnlySfxDriver(String charset, Icon openIcon, Icon closedIcon, boolean postambled, int level)
          Constructs a new read-only SFX/EXE driver.
 
Method Summary
protected  ZipOutputArchive createZipOutputArchive(Archive archive, OutputStream out, ZipInputArchive source)
           
 
Methods inherited from class de.schlichtherle.io.archive.zip.ZipDriver
createArchiveEntry, createInputArchive, createOutputArchive, createZip32InputArchive, createZip32OutputArchive, createZipEntry, createZipEntry, createZipInputArchive, 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
 

Constructor Detail

ReadOnlySfxDriver

public ReadOnlySfxDriver()
Equivalent to this(DEFAULT_CHARSET, null, null, false, DEFAULT_LEVEL).


ReadOnlySfxDriver

public ReadOnlySfxDriver(String charset)
Equivalent to this(charset, null, null, false, DEFAULT_LEVEL).


ReadOnlySfxDriver

public ReadOnlySfxDriver(int level)
Equivalent to this(DEFAULT_CHARSET, null, null, false, level).


ReadOnlySfxDriver

public ReadOnlySfxDriver(String charset,
                         Icon openIcon,
                         Icon closedIcon,
                         boolean postambled,
                         int level)
Constructs a new read-only SFX/EXE driver.

Method Detail

createZipOutputArchive

protected ZipOutputArchive createZipOutputArchive(Archive archive,
                                                  OutputStream out,
                                                  ZipInputArchive source)
                                           throws IOException
Overrides:
createZipOutputArchive in class ZipDriver
Throws:
IOException

TrueZIP 6.8

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