java.util.jar
public class: JarEntry [javadoc |
source]
java.lang.Object
java.util.zip.ZipEntry
java.util.jar.JarEntry
All Implemented Interfaces:
ZipConstants, Cloneable
Direct Known Subclasses:
JarFileEntry
This class is used to represent a JAR file entry.
Field Summary |
---|
Attributes | attr | |
Certificate[] | certs | |
CodeSigner[] | signers | |
Fields inherited from java.util.zip.ZipEntry: |
---|
name, time, crc, size, csize, method, flag, extra, comment, STORED, DEFLATED |
Constructor: |
public JarEntry(String name) {
super(name);
}
Creates a new JarEntry for the specified JAR file
entry name. Parameters:
name - the JAR file entry name
Throws:
NullPointerException - if the entry name is null
IllegalArgumentException - if the entry name is longer than
0xFFFF bytes.
- exception:
NullPointerException - if the entry name is null
- exception:
IllegalArgumentException - if the entry name is longer than
0xFFFF bytes.
|
public JarEntry(ZipEntry ze) {
super(ze);
}
Creates a new JarEntry with fields taken from the
specified ZipEntry object. Parameters:
ze - the ZipEntry object to create the
JarEntry from
|
public JarEntry(JarEntry je) {
this((ZipEntry)je);
this.attr = je.attr;
this.certs = je.certs;
this.signers = je.signers;
}
Creates a new JarEntry with fields taken from the
specified JarEntry object. Parameters:
je - the JarEntry to copy
|
Methods from java.util.zip.ZipEntry: |
---|
clone, getComment, getCompressedSize, getCrc, getExtra, getMethod, getName, getSize, getTime, hashCode, isDirectory, setComment, setCompressedSize, setCrc, setExtra, setMethod, setSize, setTime, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |