|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.common.JarHelper
public class 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 | |
---|---|
JarHelper()
Instantiates a new JarHelper. |
Method Summary | |
---|---|
void |
jarDir(java.io.File dirOrFile2Jar,
java.io.File destJar)
Jars a given directory or single file into a JarOutputStream. |
static void |
main(java.lang.String[] args)
|
void |
setVerbose(boolean b)
|
void |
unjar(java.io.InputStream in,
java.io.File destDir)
Given an InputStream on a jar file, unjars the contents into the given directory. |
void |
unjarDir(java.io.File jarFile,
java.io.File destDir)
Unjars a given jar file into a given directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarHelper()
Method Detail |
---|
public void jarDir(java.io.File dirOrFile2Jar, java.io.File destJar) throws java.io.IOException
java.io.IOException
public void unjarDir(java.io.File jarFile, java.io.File destDir) throws java.io.IOException
java.io.IOException
public void unjar(java.io.InputStream in, java.io.File destDir) throws java.io.IOException
java.io.IOException
public void setVerbose(boolean b)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |