| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.imolinfo.jbi4ejb.webservice.generator.JarUtil
public final class JarUtil
Helper method to unjar files. Some method are taken from: Taken from:http://www.koders.com/java/fidB15D2DD90588A86609A0E986A7987FA5DF5C454A.aspx TODO :Verify license
| Method Summary | |
|---|---|
| static void | unjar(java.io.File jarFile,
      java.io.File targetDir)Extracts the given jar-file to the specified directory. | 
| static void | unjar(java.io.File jarFile,
      java.lang.String resource,
      java.io.File targetDir)Extracts the given resource from a jar-file to the specified directory. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void unjar(java.io.File jarFile,
                         java.io.File targetDir)
                  throws java.io.IOException
jarFile - The jar file which should be unpackedtargetDir - The directory to which the jar-content should be extracted.
java.io.IOException - when a file could not be written or the jar-file could not
             read.
public static void unjar(java.io.File jarFile,
                         java.lang.String resource,
                         java.io.File targetDir)
                  throws java.io.IOException
jarFile - The jar file which should be unpackedresource - The name of a resource in the jartargetDir - The directory to which the jar-content should be extracted.
java.io.IOException - when a file could not be written or the jar-file could not
             read.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||