Interface ArchiveManager

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface ArchiveManager
    extends java.io.Closeable
    Manages temporary files and directories required for browsing through the entries of an Archive. Use the Closeable.close() method to delete all temporary files and directories, as well as close file handles of the root and inner archives.
    • Method Detail

      • openArchive

        @NonNull
        ArchiveContext openArchive​(@NonNull
                                   java.nio.file.Path path)
                            throws java.io.IOException
        Opens a ArchiveContext given a Path. The returned archive is valid until the Closeable.close() method is called.
        Throws:
        java.io.IOException
      • openInnerArchive

        @Nullable
        Archive openInnerArchive​(@NonNull
                                 Archive archive,
                                 @NonNull
                                 java.nio.file.Path childPath)
                          throws java.io.IOException
        Opens the inner Archive corresponding to the child Path of a given parent Archive. Returns null if the path is not an Archive.
        Throws:
        java.io.IOException