|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.util.JarResourceExtractor
public class JarResourceExtractor
Extracts contents from jar file to the defined directory.
Constructor Summary | |
---|---|
JarResourceExtractor()
Searches the classpath for the jameleon-core.jar file to use to find the desired resources. |
Method Summary | |
---|---|
void |
extractFile(ZipEntry entry,
File extractDir)
|
void |
extractFilesInDirectory(String baseDirectory,
File directoryToExtractTo)
Extracts the files from the jar file to the desired directory. |
JarFile |
getJarFile()
Gets the jar file that contains the desired resources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarResourceExtractor() throws IOException
IOException
- if a jar file containing the jameleon core version config
file cannot be found.Method Detail |
---|
public JarFile getJarFile()
public void extractFilesInDirectory(String baseDirectory, File directoryToExtractTo) throws IOException
baseDirectory
- The directory that contains the files to extractdirectoryToExtractTo
- The directory to copy the files to
IOException
public void extractFile(ZipEntry entry, File extractDir) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |