class ResourceUtil extends java.lang.Object
Operations to handle zip files and other resources on the classpath.
| Constructor and description |
|---|
ResourceUtil
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.io.File |
extractFileToDirectory(java.io.File targetDirectory, java.lang.String resourcePath)Given a target dir and resource, extract resource to target if it's not there already. |
|
java.io.File |
extractZipFile(java.io.File zipFile)Given an existing ZipFile, unzip it in the same directory and return a reference to the unzipped directory. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Given a target dir and resource, extract resource to target if it's not there already.
targetDirectory - directory to extract toresourcePath - path to resource to extractGiven an existing ZipFile, unzip it in the same directory and return a reference to the unzipped directory.
zipFile - to extract