TrueZIP 6.8.2

de.schlichtherle.io.archive.zip
Class JarDriver

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.JarDriver
All Implemented Interfaces:
ArchiveDriver, Serializable
Direct Known Subclasses:
AbstractZipRaesDriver, CheckedJarDriver, OdfDriver

public class JarDriver
extends ZipDriver

An archive driver which builds JAR files. JAR files use "UTF-8" as the character set for entry names and comments.

Other than this, JAR files are treated like regular ZIP files. In particular, this class does not check a JAR file for the existance of the META-INF/MANIFEST.MF entry or any other entry.

Instances of this class are immutable.

Since:
TrueZIP 6.0
Version:
$Id: JarDriver.java 06f3ba684701 2010/11/04 01:15:55 christian $
Author:
Christian Schlichtherle
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.schlichtherle.io.archive.spi.AbstractArchiveDriver
AbstractArchiveDriver.InconsistentCharsetSupportError
 
Field Summary
static String DEFAULT_CHARSET
          The default character set for entry names and comments, which is "UTF-8".
private static long serialVersionUID
           
 
Fields inherited from class de.schlichtherle.io.archive.zip.ZipDriver
DEFAULT_LEVEL, TEMP_FILE_PREFIX
 
Constructor Summary
JarDriver()
          Equivalent to this(null, null, false, false, DEFAULT_LEVEL).
JarDriver(Icon openIcon, Icon closedIcon, boolean preambled, boolean postambled, int level)
          Constructs a new JAR driver.
JarDriver(int level)
          Equivalent to this(null, null, false, false, level).
 
Method Summary
protected  ZipEntry createZipEntry(String entryName)
           
protected  ZipEntry createZipEntry(ZipEntry template)
           
protected  ZipInputArchive createZipInputArchive(Archive archive, ReadOnlyFile rof)
           
 
Methods inherited from class de.schlichtherle.io.archive.zip.ZipDriver
createArchiveEntry, createInputArchive, createOutputArchive, createZip32InputArchive, createZip32OutputArchive, 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

DEFAULT_CHARSET

public static final String DEFAULT_CHARSET
The default character set for entry names and comments, which is "UTF-8".

See Also:
Constant Field Values
Constructor Detail

JarDriver

public JarDriver()
Equivalent to this(null, null, false, false, DEFAULT_LEVEL).


JarDriver

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


JarDriver

public JarDriver(Icon openIcon,
                 Icon closedIcon,
                 boolean preambled,
                 boolean postambled,
                 int level)
Constructs a new JAR driver.

Method Detail

createZipEntry

protected ZipEntry createZipEntry(ZipEntry template)
Overrides:
createZipEntry in class ZipDriver

createZipEntry

protected ZipEntry createZipEntry(String entryName)
Overrides:
createZipEntry in class ZipDriver

createZipInputArchive

protected ZipInputArchive createZipInputArchive(Archive archive,
                                                ReadOnlyFile rof)
                                         throws IOException
Overrides:
createZipInputArchive in class ZipDriver
Throws:
IOException

TrueZIP 6.8.2

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