Class Overview
Represents a single file in a JAR archive together with the manifest
attributes and digital signatures associated with it.
Summary
Public Constructors |
|
JarEntry(String name)
Creates a new JarEntry named name.
|
|
JarEntry(ZipEntry entry)
Creates a new JarEntry using the values obtained from entry.
|
|
JarEntry(JarEntry je)
Create a new JarEntry using the values obtained from the
argument.
|
[Expand]
Inherited Methods |
From class
java.util.zip.ZipEntry
Object
|
clone()
Returns a deep copy of this zip entry.
|
String
|
getComment()
Gets the comment for this ZipEntry .
|
long
|
getCompressedSize()
Gets the compressed size of this ZipEntry .
|
long
|
getCrc()
Gets the checksum for this ZipEntry .
|
byte[]
|
getExtra()
Gets the extra information for this ZipEntry .
|
int
|
getMethod()
Gets the compression method for this ZipEntry .
|
String
|
getName()
Gets the name of this ZipEntry .
|
long
|
getSize()
Gets the uncompressed size of this ZipEntry .
|
long
|
getTime()
Gets the last modification time of this ZipEntry .
|
int
|
hashCode()
Returns the hash code for this ZipEntry .
|
boolean
|
isDirectory()
Determine whether or not this ZipEntry is a directory.
|
void
|
setComment(String comment)
Sets the comment for this ZipEntry .
|
void
|
setCompressedSize(long value)
Sets the compressed size for this ZipEntry .
|
void
|
setCrc(long value)
Sets the checksum for this ZipEntry .
|
void
|
setExtra(byte[] data)
Sets the extra information for this ZipEntry .
|
void
|
setMethod(int value)
Sets the compression method for this ZipEntry .
|
void
|
setSize(long value)
Sets the uncompressed size of this ZipEntry .
|
void
|
setTime(long value)
Sets the modification time of this ZipEntry .
|
String
|
toString()
Returns the string representation of this ZipEntry .
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Called before the object's memory is reclaimed by the VM.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Constructors
public
JarEntry
(String name)
Creates a new JarEntry
named name.
Parameters
name
| The name of the new JarEntry .
|
public
JarEntry
(ZipEntry entry)
Creates a new JarEntry
using the values obtained from entry.
Parameters
entry
| The ZipEntry to obtain values from.
|
public
JarEntry
(JarEntry je)
Create a new JarEntry
using the values obtained from the
argument.
Parameters
je
| The JarEntry to obtain values from.
|
Public Methods
public
Attributes
getAttributes
()
Returns the Attributes
object associated with this entry or
null
if none exists.
Returns
- the
Attributes
for this entry.
Throws
IOException
| If an error occurs obtaining the Attributes . |
Returns an array of Certificate
Objects associated with this
entry or null
if none exists. Make sure that the everything is
read from the input stream before calling this method, or else the method
returns null
.
Returns
- the certificate for this entry.
public
CodeSigner[]
getCodeSigners
()
Returns the code signers for the digital signatures associated with the
JAR file. If there is no such code signer, it returns null
. Make
sure that the everything is read from the input stream before calling
this method, or else the method returns null
.
Returns
- the code signers for the JAR entry.