Class JarUtil


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

      • JarUtil

        public JarUtil()
    • Method Detail

      • unjar

        public static 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 static boolean unjar​(String jarsource,
                                    String target,
                                    String entry)
        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.