java.lang.Objectorg.objectweb.telosys.util.JarUtil
Field Summary | |
static boolean |
KEEP_PARENT_DIR
|
static boolean |
REMOVE_PARENT_DIR
|
Constructor Summary | |
JarUtil()
|
Method Summary | |
static void |
extract(java.lang.String sJarFile,
java.lang.String sJarEntry,
java.lang.String sExtractedFile)
Extract a file from a JAR file (replace the extracted file if it exists) |
static void |
extractEntry(java.util.jar.JarFile jarFile,
java.util.jar.JarEntry jarEntry,
java.lang.String sExtractedFile)
Extract the given entry from the given JAR file The destination directories are created if necessary. |
static void |
extractFiles(java.lang.String sJarFile,
java.lang.String sBeginning,
java.lang.String sArgDestDir,
boolean bKeepParentDir)
Extract all the files corresponding to the given beginning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean KEEP_PARENT_DIR
public static final boolean REMOVE_PARENT_DIR
Constructor Detail |
public JarUtil()
Method Detail |
public static void extract(java.lang.String sJarFile, java.lang.String sJarEntry, java.lang.String sExtractedFile) throws TelosysException
sJarFile
- jar file namesJarEntry
- file name to extractsExtractedFile
- file name of the extracted file
TelosysException
public static void extractEntry(java.util.jar.JarFile jarFile, java.util.jar.JarEntry jarEntry, java.lang.String sExtractedFile) throws TelosysException
jarFile
- jarEntry
- sExtractedFile
-
TelosysException
public static void extractFiles(java.lang.String sJarFile, java.lang.String sBeginning, java.lang.String sArgDestDir, boolean bKeepParentDir) throws TelosysException
sJarFile
- the JAR file namesBeginning
- the beginning of the file names to extractsArgDestDir
- the destination directorybKeepParentDir
- KEEP_PARENT_DIR (true) : to keep the parent directory of the JAR entry, TelosysException