| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Enumeration entries = …;
JarEntry entry = (JarEntry)entries.nextElement();
Based on 111 examples
public class JarEntry extends ZipEntry
This class is used to represent a JAR file entry.
Field Summary |
---|
Fields inherited from class java.util.zip.ZipEntry |
---|
DEFLATED, STORED |
Constructor Summary | |
---|---|
Creates a new JarEntry with fields taken from the
specified JarEntry object.
|
|
Creates a new JarEntry for the specified JAR file
entry name.
|
|
Creates a new JarEntry with fields taken from the
specified ZipEntry object.
|
Method Summary | |
---|---|
Attributes |
Returns the Manifest Attributes for this
entry, or null if none.
|
Certificate[] |
Returns the Certificate objects for this entry, or
null if none.
|
CodeSigner[] |
Returns the CodeSigner objects for this entry, or
null if none.
|
Methods inherited from class java.util.zip.ZipEntry |
---|
clone, getComment, getCompressedSize, getCrc, getExtra, getMethod, getName, getSize, getTime, hashCode, isDirectory, setComment, setCompressedSize, setCrc, setExtra, setMethod, setSize, setTime, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarEntry(JarEntry je)
JarEntry
with fields taken from the
specified JarEntry
object.
je
- the JarEntry
to copypublic JarEntry(String name)
JarEntry
for the specified JAR file
entry name.
name
- the JAR file entry namepublic JarEntry(ZipEntry ze)
JarEntry
with fields taken from the
specified ZipEntry
object.
ze
- the ZipEntry
object to create the
JarEntry
fromMethod Detail |
---|
public Attributes getAttributes() throws IOException
Manifest
Attributes
for this
entry, or null
if none.
Manifest
Attributes
for this
entry, or null
if noneIOException
public Certificate[] getCertificates()
Certificate
objects for this entry, or
null
if none. This method can only be called once
the JarEntry
has been completely verified by reading
from the entry input stream until the end of the stream has been
reached. Otherwise, this method will return null
.
The returned certificate array comprises all the signer certificates that were used to verify this entry. Each signer certificate is followed by its supporting certificate chain (which may be empty). Each signer certificate and its supporting certificate chain are ordered bottom-to-top (i.e., with the signer certificate first and the (root) certificate authority last).
Certificate
objects for this entry, or
null
if none.public CodeSigner[] getCodeSigners()
CodeSigner
objects for this entry, or
null
if none. This method can only be called once
the JarEntry
has been completely verified by reading
from the entry input stream until the end of the stream has been
reached. Otherwise, this method will return null
.
The returned array comprises all the code signers that have signed this entry.
CodeSigner
objects for this entry, or
null
if none.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |