Name
JarEntry
Synopsis
This
class extends java.util.zip.ZipEntry
; it
represents a single file in a JAR archive and the manifest attributes
and digital signatures associated with that file.
JarEntry
objects can be read from a JAR file with
JarFile
or JarInputStream
, and
they can be written to a JAR file with
JarOutputStream
. Use getAttributes(
)
to obtain the Attributes
for the
entry. Use getCertificates( )
to obtain a
java.security.cert.Certificate
array that contains
the certificate chains for all digital signatures associated with the
file. In Java 5.0, this digital signature information may be more
conveniently retrieved as an array of CodeSigner
objects.
Figure 16-108. java.util.jar.JarEntry
public class JarEntry extends java.util.zip.ZipEntry { // Public Constructors public JarEntry(String name); public JarEntry(java.util.zip.ZipEntry ze); public JarEntry(JarEntry je); // Public Instance Methods public java.util.jar.Attributes getAttributes( ) throws java.io.IOException; public java.security.cert.Certificate[ ] getCertificates( ); 5.0 public java.security.CodeSigner[ ] getCodeSigners( ); }
Returned By
java.net.JarURLConnection.getJarEntry( )
,
JarFile.getJarEntry( )
,
JarInputStream.getNextJarEntry( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.