is new.
java.lang.Objectjava.util.zip.ZipEntry
java.util.jar.JarEntry
This class is used to represent a JAR file entry.
| Field Summary | |
|---|---|
| static int |
CENATT
|
| static int |
CENATX
|
| static int |
CENCOM
|
| static int |
CENCRC
|
| static int |
CENDSK
|
| static int |
CENEXT
|
| static int |
CENFLG
|
| static int |
CENHDR
|
| static int |
CENHOW
|
| static int |
CENLEN
|
| static int |
CENNAM
|
| static int |
CENOFF
|
| static long |
CENSIG
|
| static int |
CENSIZ
|
| static int |
CENTIM
|
| static int |
CENVEM
|
| static int |
CENVER
|
| static int |
ENDCOM
|
| static int |
ENDHDR
|
| static int |
ENDOFF
|
| static long |
ENDSIG
|
| static int |
ENDSIZ
|
| static int |
ENDSUB
|
| static int |
ENDTOT
|
| static int |
EXTCRC
|
| static int |
EXTHDR
|
| static int |
EXTLEN
|
| static long |
EXTSIG
|
| static int |
EXTSIZ
|
| static int |
LOCCRC
|
| static int |
LOCEXT
|
| static int |
LOCFLG
|
| static int |
LOCHDR
|
| static int |
LOCHOW
|
| static int |
LOCLEN
|
| static int |
LOCNAM
|
| static long |
LOCSIG
|
| static int |
LOCSIZ
|
| static int |
LOCTIM
|
| static int |
LOCVER
|
| Fields inherited from class java.util.zip. ZipEntry |
|---|
| DEFLATED , STORED |
| Constructor Summary | |
|---|---|
|
JarEntry
(
JarEntry
je) Creates a new JarEntry with fields taken from the specified JarEntry object. |
|
|
JarEntry
(
String
name) Creates a new JarEntry for the specified JAR file entry name. |
|
|
JarEntry
(
ZipEntry
ze) Creates a new JarEntry with fields taken from the specified ZipEntry object. |
|
| Method Summary | |
|---|---|
| Attributes |
getAttributes
() Returns the Manifest Attributes for this entry, or null if none. |
| Certificate [] |
getCertificates
() Returns the Certificate objects for this entry, or null if none. |
CodeSigner
|
getCodeSigners
()
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 |
|---|
| equals , finalize , getClass , notify , notifyAll , wait , wait , wait |
| Field Detail |
|---|
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
| Constructor Detail |
|---|
public JarEntry(String name)
public JarEntry(ZipEntry ze)
public JarEntry(JarEntry je)
| Method Detail |
|---|
public Attributes getAttributes()
throws IOException
public Certificate[] getCertificates()
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).
getCodeSigners
public
CodeSigner
[]
getCodeSigners
()
Returns the 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.
Returns:
the CodeSigner objects for this entry, or null if none.
Since:
1.5