public class JarHelper extends Object
Copied from http://grepcode.com/file_/repo1.maven.org/maven2/org.apache.xmlbeans/xmlbeans/2.4.0/org/apache/xmlbeans/impl/common/JarHelper.java/?v=source
Author: Patrick Calahan pcal@bea.com
Constructor and Description |
---|
JarHelper()
Instantiates a new JarHelper.
|
Modifier and Type | Method and Description |
---|---|
void |
jarDir(File dirOrFile2Jar,
File destJar)
Jars a given directory or single file into a JarOutputStream.
|
static void |
main(String[] args) |
void |
setVerbose(boolean b) |
void |
unjar(InputStream in,
File destDir)
Given an InputStream on a jar file, unjars the contents into the given directory.
|
void |
unjarDir(File jarFile,
File destDir)
Unjars a given jar file into a given directory.
|
public void jarDir(File dirOrFile2Jar, File destJar) throws IOException
IOException
public void unjarDir(File jarFile, File destDir) throws IOException
IOException
public void unjar(InputStream in, File destDir) throws IOException
IOException
public void setVerbose(boolean b)
public static void main(String[] args) throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.