Class JarFileObject

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Comparable<FileObject>, java.lang.Iterable<FileObject>, FileObject

    public class JarFileObject
    extends ZipFileObject
    A file in a Jar file system.
    • Field Detail

      • attributes

        private java.util.jar.Attributes attributes
    • Method Detail

      • getManifest

        java.util.jar.Manifest getManifest()
                                    throws java.io.IOException
        Returns the Jar manifest.
        Throws:
        java.io.IOException
      • getAttributes

        java.util.jar.Attributes getAttributes()
                                        throws java.io.IOException
        Returns the attributes of this file.
        Throws:
        java.io.IOException
      • doGetAttributes

        protected java.util.Map<java.lang.String,​java.lang.Object> doGetAttributes()
                                                                                  throws java.lang.Exception
        Returns the value of an attribute.
        Overrides:
        doGetAttributes in class AbstractFileObject<ZipFileSystem>
        Returns:
        The attributes of the file.
        Throws:
        java.lang.Exception - if an error occurs.
      • addAll

        private void addAll​(java.util.jar.Attributes src,
                            java.util.Map<java.lang.String,​java.lang.Object> dest)
        Adds the source attributes to the destination map.
      • doGetCertificates

        protected java.security.cert.Certificate[] doGetCertificates()
        Return the certificates of this JarEntry.
        Overrides:
        doGetCertificates in class AbstractFileObject<ZipFileSystem>
        Returns:
        The certificates used to sign the file.