Interface ArchiveContext

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface ArchiveContext
    extends java.lang.AutoCloseable
    Represents a top level Archive and its associated ArchiveManager used to keep track of temporary files and directories required for extraction. Use the close() method to ensure immediate release of file handles and deletion of temporary files.
    • Method Detail

      • getArchive

        @NonNull
        Archive getArchive()
        The main (or "outer") archive
      • getArchiveManager

        @NonNull
        ArchiveManager getArchiveManager()
        The responsible for keeping track of inner archive resources
      • close

        void close()
            throws java.io.IOException
        Closes the main archive and all inner archives, deleting temporary files and directories used for extraction
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException