@Immutable @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class JarDriver extends ZipDriver
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.
| Modifier and Type | Field and Description |
|---|---|
static Charset |
JAR_CHARSET
The character set for entry names and comments in JAR files, which is
"UTF-8". |
| Constructor and Description |
|---|
JarDriver(IOPoolProvider ioPoolProvider)
Constructs a new JAR file driver.
|
| Modifier and Type | Method and Description |
|---|---|
ZipArchiveEntry |
newEntry(String name)
Returns a new ZIP entry with the given
name. |
ZipArchiveEntry |
newEntry(String name,
ZipEntry template) |
check, getKeyManagerProvider, getKeyProviderSyncStrategy, getLevel, getMethod, getOutputSocket, getPool, getPostambled, getPreambled, getRedundantContentSupport, getRedundantMetaDataSupport, mountPointUri, newController, newEntry, newInputShop, newInputShop, newOutputShop, newOutputShop, newOutputShop, process, process, process, resourceUri, superNewController, zipCryptoParameters, zipCryptoParameters, zipCryptoParametersassertEncodable, getCharset, toString, toZipOrTarEntryNamegetClosedIcon, getInputSocket, getOpenIcon, isFederated, newEntry, newInputStream, newOutputStream, newReadOnlyFilegetPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOverheadSizegetCharsetpublic static final Charset JAR_CHARSET
"UTF-8".public JarDriver(IOPoolProvider ioPoolProvider)
JAR_CHARSET for encoding entry names
and comments.ioPoolProvider - the provider for I/O entry pools for allocating
temporary I/O entries (buffers).public ZipArchiveEntry newEntry(String name)
ZipEntryFactoryname.newEntry in interface ZipEntryFactory<ZipArchiveEntry>newEntry in class ZipDrivername - the entry name.name.public ZipArchiveEntry newEntry(String name, ZipEntry template)
Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.