public class JarHelper extends Object
| 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
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
IOException