Interface IArchive

    • Method Detail

      • getFileEntries

        Iterable<IArchiveFileEntry> getFileEntries()

        Gets entries of IArchiveFileEntry type constituting the archive.

        Archives for compression only, such as gzip, bzip2, lzip, lzma, lz4, xz, z consist of the single record - the archive itself.

        Returns:
        entries of IArchiveFileEntry type constituting the archive.
      • extractToDirectory

        void extractToDirectory​(String destinationDirectory)

        Extracts all the files in the archive to the directory provided.

        If the directory does not exist, it will be created.

        Parameters:
        destinationDirectory - The path to the directory to place the extracted files in.
      • getFormat

        ArchiveFormat getFormat()

        Gets the archive format.

        Returns:
        the archive format