Class JarUtil

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

public class JarUtil extends Object
This class is for handling with jar-files.
Version:
4.0
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • JarUtil

      public JarUtil()
  • Method Details

    • unjar

      public boolean unjar(String jarsource, String target)
      This method extracts all entries of a jar-file.
      Parameters:
      jarsource - Path of the jar-file.
      target - Path of the extracted files.
      Returns:
      True if successfully extracted.
    • unjar

      public boolean unjar(String jarsource, String entry, String target)
      This method extracts one entry of a jar-file.
      Parameters:
      jarsource - Path of the jar-file.
      target - Path of the extracted files.
      entry - Name of the entry to be extracted.
      Returns:
      True if successfully extracted.