Class SevenZOutputFileExtensions

java.lang.Object
io.github.astrapi69.zip.sevenz.SevenZOutputFileExtensions

public class SevenZOutputFileExtensions extends Object
Extension functions for SevenZOutputFile.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, File file)
    Adds a file to the 7z archive.
    static void
    add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, String dirToZip, File file)
    Adds a file to the 7z archive under the specified directory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SevenZOutputFileExtensions

      public SevenZOutputFileExtensions()
  • Method Details

    • add

      public static void add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, String dirToZip, File file) throws IOException
      Adds a file to the 7z archive under the specified directory
      Parameters:
      sevenZOutputFile - The 7z archive zip file to add the file
      dirToZip - The directory to be zipped.
      file - The file to be added.
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • add

      public static void add(org.apache.commons.compress.archivers.sevenz.SevenZOutputFile sevenZOutputFile, File file) throws IOException
      Adds a file to the 7z archive.
      Parameters:
      sevenZOutputFile - The 7z archive zip file to add the file
      file - The file to be added.
      Throws:
      IOException - Signals that an I/O exception has occurred.