Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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. |
clone, getComment, getCompressedSize, getCrc, getCreationTime, getExtra, getLastAccessTime, getLastModifiedTime, getMethod, getName, getSize, getTime, hashCode, isDirectory, setComment, setCompressedSize, setCrc, setCreationTime, setExtra, setLastAccessTime, setLastModifiedTime, setMethod, setSize, setTime, toString
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
public JarEntry(String name)
JarEntry
for the specified JAR file
entry name.name
- the JAR file entry nameNullPointerException
- if the entry name is null
IllegalArgumentException
- if the entry name is longer than
0xFFFF bytes.public JarEntry(ZipEntry ze)
JarEntry
with fields taken from the
specified ZipEntry
object.ze
- the ZipEntry
object to create the
JarEntry
frompublic JarEntry(JarEntry je)
JarEntry
with fields taken from the
specified JarEntry
object.je
- the JarEntry
to copypublic Attributes getAttributes() throws IOException
Manifest
Attributes
for this
entry, or null
if none.Manifest
Attributes
for this
entry, or null
if noneIOException
- if an I/O error has occurredpublic 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. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.