java.util.jar
Class JarEntry
java.lang.Object
java.util.zip.ZipEntry
java.util.jar.JarEntry
- All Implemented Interfaces:
- Cloneable, ZipConstants
public class JarEntry
- extends ZipEntry
| Fields inherited from interface java.util.zip.ZipConstants |
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER |
|
Constructor Summary |
JarEntry(JarEntry je)
Create a new JarEntry using the values obtained from je. |
JarEntry(String name)
Create a new JarEntry named name |
JarEntry(ZipEntry entry)
Create a new JarEntry using the values obtained from entry. |
| 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 |
parentJar
JarFile parentJar
signers
CodeSigner[] signers
JarEntry
public JarEntry(String name)
- Create a new JarEntry named name
- Parameters:
name - The name of the new JarEntry
JarEntry
public JarEntry(ZipEntry entry)
- Create a new JarEntry using the values obtained from entry.
- Parameters:
entry - The ZipEntry to obtain values from.
JarEntry
public JarEntry(JarEntry je)
- Create a new JarEntry using the values obtained from je.
- Parameters:
je - The JarEntry to obtain values from
getAttributes
public Attributes getAttributes()
throws IOException
- Returns the Attributes object associated with this entry or null if none
exists.
- Returns:
- java.util.jar.Attributes Attributes for this entry
- Throws:
IOException - If an error occurs obtaining the Attributes
getCertificates
public Certificate[] getCertificates()
- Returns an array of Certificate Objects associated with this entry or
null if none exist.
- Returns:
- java.security.cert.Certificate[] Certificates for this entry
setAttributes
void setAttributes(Attributes attrib)
getCodeSigners
public CodeSigner[] getCodeSigners()
- Returns the code signers for the jar entry. If there is no such code
signers, returns null. Only when the jar entry has been completely
verified by reading till the end of the jar entry, can the method be
called. Or else the method will return null.
- Returns:
- the code signers for the jar entry.
Please submit a feedback, bug or feature