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 void unjar(String jarsource, String target) throws IOException
      This method extracts all entries of a jar-file.
      Parameters:
      jarsource - Path of the jar-file.
      target - Path of the extracted files.
      Throws:
      IOException - I/O Error
    • unjar

      public void unjar(String jarsource, String entry, String target) throws IOException
      This method extracts one entry of a jar-file.
      Parameters:
      jarsource - Path of the jar-file.
      target - Path of the extracted file.
      entry - Name of the entry to be extracted.
      Throws:
      IOException - I/O Error