Interface IArchiveFileEntry

    • Method Detail

      • getName

        String getName()

        Gets the name of the entry.

        Archives for compression only, such as gzip, bzip2, lzip, lzma, xz, z has name "File.bin" unless another name can be found in headers.

        Returns:
        the name of the entry
      • getLength

        Long getLength()

        Gets the length of the entry in bytes.

        Returns:
        the length of the entry in bytes
      • extract

        File extract​(String path)

        Extracts the entry to the filesystem by the path provided.

        Parameters:
        path - the path to destination file. If the file already exists, it will be overwritten
        Returns:
        File instance containing extracted data
      • extract

        void extract​(OutputStream destination)

        Extracts the entry to the stream provided.

        Parameters:
        destination - destination stream. Must be writable