Class JarFileWrapper

  • All Implemented Interfaces:
    Archive

    public class JarFileWrapper
    extends java.lang.Object
    implements Archive
    The type Jar file wrapper.
    • Constructor Summary

      Constructors 
      Constructor Description
      JarFileWrapper​(java.io.File file)
      Instantiates a new Jar file wrapper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close.
      java.util.Enumeration<Entry> getEntries()
      Gets entries.
      java.io.InputStream getInputStream​(Entry entry)
      Gets input stream.
      java.util.jar.Manifest getManifest()
      Gets manifest.
      java.lang.String getName()
      Gets name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarFileWrapper

        public JarFileWrapper​(java.io.File file)
                       throws java.io.IOException
        Instantiates a new Jar file wrapper.
        Parameters:
        file - the file
        Throws:
        java.io.IOException - the io exception
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Archive
        Gets name.
        Specified by:
        getName in interface Archive
        Returns:
        the name
      • getEntries

        public java.util.Enumeration<Entry> getEntries()
        Description copied from interface: Archive
        Gets entries.
        Specified by:
        getEntries in interface Archive
        Returns:
        the entries
      • getManifest

        public java.util.jar.Manifest getManifest()
                                           throws java.io.IOException
        Description copied from interface: Archive
        Gets manifest.
        Specified by:
        getManifest in interface Archive
        Returns:
        the manifest
        Throws:
        java.io.IOException - the io exception
      • getInputStream

        public java.io.InputStream getInputStream​(Entry entry)
                                           throws java.io.IOException
        Description copied from interface: Archive
        Gets input stream.
        Specified by:
        getInputStream in interface Archive
        Parameters:
        entry - the entry
        Returns:
        the input stream
        Throws:
        java.io.IOException - the io exception
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: Archive
        Close.
        Specified by:
        close in interface Archive
        Throws:
        java.io.IOException - the io exception