Interface ArchiveFile

All Known Implementing Classes:
BZip2TarFile, GZipTarFile, SnappyTarFile, TarFile, XZTarFile, ZstdTarFile

public interface ArchiveFile
Interface of a zip, or tar file.
  • Method Summary

    Modifier and Type
    Method
    Description
    Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry>
    Returns an enumeration with the archive files entries.
    getInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry)
    Returns an InputStream with the given entries contents.
  • Method Details

    • getEntries

      Enumeration<? extends org.apache.commons.compress.archivers.ArchiveEntry> getEntries() throws IOException
      Returns an enumeration with the archive files entries. Any element returned by the enumeration is an instance of ArchiveEntry.
      Throws:
      IOException
    • getInputStream

      InputStream getInputStream(org.apache.commons.compress.archivers.ArchiveEntry entry) throws IOException
      Returns an InputStream with the given entries contents. org.apache.commons.compress.archivers.ArchiveEntry
      Throws:
      IOException