JarEntry


JarEntry java.util.jar

Java 1.2 cloneable

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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net