Package org.apache.xmlbeans.impl.common
Class JarHelper
java.lang.Object
org.apache.xmlbeans.impl.common.JarHelper
Provides utility services for jarring and unjarring files and directories.
Note that a given instance of JarHelper is not threadsafe with respect to
multiple jar operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidJars a given directory or single file into a JarOutputStream.static voidvoidsetVerbose(boolean b) voidunjar(InputStream in, File destDir) Given an InputStream on a jar file, unjars the contents into the given directory.voidUnjars a given jar file into a given directory.
-
Constructor Details
-
JarHelper
public JarHelper()Instantiates a new JarHelper.
-
-
Method Details
-
jarDir
Jars a given directory or single file into a JarOutputStream.- Throws:
IOException
-
unjarDir
Unjars a given jar file into a given directory.- Throws:
IOException
-
unjar
Given an InputStream on a jar file, unjars the contents into the given directory.- Throws:
IOException
-
setVerbose
public void setVerbose(boolean b) -
main
- Throws:
IOException
-