Class TarUtil

java.lang.Object
com.logicaldoc.util.io.TarUtil

public class TarUtil extends Object
This class is for reading tar files
Version:
8.7.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • TarUtil

      public TarUtil()
  • Method Details

    • listEntries

      public List<String> listEntries(File tarFile) throws IOException
      Throws:
      IOException
    • extractEntry

      public void extractEntry(File tarFile, File dest) throws IOException
      Extracts the first file entry contained in the given TAR archive
      Parameters:
      tarFile - the TAR archive to read
      dest - the destination file to extract the first file entry to
      Throws:
      IOException - I/O error