@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 default character set for entry names and comments, which is
"UTF-8". |
| Constructor and Description |
|---|
JarDriver(IOPoolProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
JarArchiveEntry |
newEntry(String name)
Returns a new ZIP entry with the given
name. |
JarArchiveEntry |
newEntry(String path,
Entry.Type type,
Entry template,
BitField<FsOutputOption> mknod) |
JarArchiveEntry |
newEntry(String name,
ZipArchiveEntry template) |
getLevel, getMethod, getOutputSocket, getPool, getPostambled, getPreambled, newInputShop, newOutputShop, newZipInputShop, newZipOutputShopassertEncodable, getCharset, toString, toZipOrTarEntryNamegetClosedIcon, getInputSocket, getOpenIcon, isFederated, newController, newEntry, newInputStream, newOutputStream, newReadOnlyFilegetPrioritypublic static final Charset JAR_CHARSET
"UTF-8".public JarDriver(IOPoolProvider provider)
public JarArchiveEntry newEntry(String path, Entry.Type type, @CheckForNull Entry template, BitField<FsOutputOption> mknod) throws CharConversionException
newEntry in class ZipDriverCharConversionExceptionpublic JarArchiveEntry newEntry(String name)
ZipEntryFactoryname.newEntry in interface ZipEntryFactory<ZipArchiveEntry>newEntry in class ZipDrivername - the entry name - null is not permitted.name.public JarArchiveEntry newEntry(String name, ZipArchiveEntry template)
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.