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
| 构造器和说明 |
|---|
JarHelper()
Instantiates a new JarHelper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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
IOExceptionpublic void unjarDir(File jarFile, File destDir) throws IOException
IOExceptionpublic void unjar(InputStream in, File destDir) throws IOException
IOExceptionpublic void setVerbose(boolean b)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.