Interface Archive

  • All Known Implementing Classes:
    DirectoryWrapper, JarFileWrapper

    public interface Archive
    Describes an abstract "archive". This is usually a JAR archive. However in Java terms using a directory to execute code (.class files) is perfectly fine. Thus AbstractArchive provides an abstraction layer to account for both JAR files and directories (and potentially more).
    • Method Detail

      • getName

        java.lang.String getName()
        Gets name.
        Returns:
        the name
      • getEntries

        java.util.Enumeration<Entry> getEntries()
        Gets entries.
        Returns:
        the entries
      • getManifest

        java.util.jar.Manifest getManifest()
                                    throws java.io.IOException
        Gets manifest.
        Returns:
        the manifest
        Throws:
        java.io.IOException - the io exception
      • getInputStream

        java.io.InputStream getInputStream​(Entry entry)
                                    throws java.io.IOException
        Gets input stream.
        Parameters:
        entry - the entry
        Returns:
        the input stream
        Throws:
        java.io.IOException - the io exception
      • close

        void close()
            throws java.io.IOException
        Close.
        Throws:
        java.io.IOException - the io exception