Cloneable
public class JarEntry extends ZipEntry
This class is used to represent a JAR file entry.
JarEntry(String name)
Creates a new JarEntry
for the specified JAR file entry name.
JarEntry(JarEntry je)
Creates a new JarEntry
with fields taken from the specified JarEntry
object.
JarEntry(ZipEntry ze)
Creates a new JarEntry
with fields taken from the specified ZipEntry
object.
clone, getComment, getCompressedSize, getCrc, getCreationTime, getExtra, getLastAccessTime, getLastModifiedTime, getMethod, getName, getSize, getTime, getTimeLocal, hashCode, isDirectory, setComment, setCompressedSize, setCrc, setCreationTime, setExtra, setLastAccessTime, setLastModifiedTime, setMethod, setSize, setTime, setTimeLocal, toString
static final long LOCSIG
static final long EXTSIG
static final long CENSIG
static final long ENDSIG
static final int LOCHDR
static final int EXTHDR
static final int CENHDR
static final int ENDHDR
static final int LOCVER
static final int LOCFLG
static final int LOCHOW
static final int LOCTIM
static final int LOCCRC
static final int LOCSIZ
static final int LOCLEN
static final int LOCNAM
static final int LOCEXT
static final int EXTCRC
static final int EXTSIZ
static final int EXTLEN
static final int CENVEM
static final int CENVER
static final int CENFLG
static final int CENHOW
static final int CENTIM
static final int CENCRC
static final int CENSIZ
static final int CENLEN
static final int CENNAM
static final int CENEXT
static final int CENCOM
static final int CENDSK
static final int CENATT
static final int CENATX
static final int CENOFF
static final int ENDSUB
static final int ENDTOT
static final int ENDSIZ
static final int ENDOFF
static final int ENDCOM
(
String name)Creates a new JarEntry
for the specified JAR file entry name.
name
- the JAR file entry name
NullPointerException
- if the entry name is null
IllegalArgumentException
- if the entry name is longer than 0xFFFF bytes.
Creates a new JarEntry
with fields taken from the specified ZipEntry
object.
ze
- the ZipEntry
object to create the JarEntry
from
Creates a new JarEntry
with fields taken from the specified JarEntry
object.
je
- the JarEntry
to copy
Returns the Manifest
Attributes
for this entry, or null
if none.
Manifest
Attributes
for this entry, or null
if none
IOException
- if an I/O error has occurred
Returns the
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.
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.
CodeSigner
objects for this entry, or null
if none.
Returns the real name of this
JarEntry
. If this
JarEntry
is an entry of a
multi-release jar fileand the
JarFile
is configured to be processed as such, the name returned by this method is the path name of the versioned entry that the
JarEntry
represents, rather than the path name of the base entry that
ZipEntry.getName()
returns. If the
JarEntry
does not represent a versioned entry of a multi-release
JarFile
or the
JarFile
is not configured for processing a multi-release jar file, this method returns the same name that
ZipEntry.getName()
returns.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4