de.schlichtherle.io.archive.zip
Class JarDriver
java.lang.Object
de.schlichtherle.io.archive.spi.AbstractArchiveDriver
de.schlichtherle.io.archive.zip.ZipDriver
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
- Author:
- Christian Schlichtherle
- See Also:
- Serialized Form
|
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). |
| 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
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
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.
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
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.