| java.lang.Object de.mcs.utils.XarExtracter
XarExtracter | public class XarExtracter (Code) | | Extract files from a .ear, .war or .jar archive file.
author: j.froehlich |
Constructor Summary | |
public | XarExtracter(File aArchiveFile, File aBaseDirFile) constructor with the archive name and a working target. | public | XarExtracter(String archiveFilename, String baseDir) constructor with the archive name and a working target. |
Method Summary | |
final public void | close() closing the zip file. | final public File | extract(String fromFilename, String toLocalFilename) doing the extraction. | final public void | extractAll() extract all files from the zip file. | final public void | extractAll(boolean recursive, int recursionDepth) extract all files from the zip file, with all or none subfolder, or with
subfolder up to the defined depth.. | final public File | getFile() | final public String | getName() | final public String | toString() |
XarExtracter | public XarExtracter(File aArchiveFile, File aBaseDirFile) throws IOException(Code) | | constructor with the archive name and a working target.
Parameters: aArchiveFile - the archive name Parameters: aBaseDirFile - where to extract. throws: IOException - if something goes wrong. |
XarExtracter | public XarExtracter(String archiveFilename, String baseDir) throws IOException(Code) | | constructor with the archive name and a working target.
Parameters: archiveFilename - the archive name Parameters: baseDir - where to extract. throws: IOException - if something goes wrong. |
extract | final public File extract(String fromFilename, String toLocalFilename) throws IOException(Code) | | doing the extraction.
Parameters: fromFilename - filename in zip file Parameters: toLocalFilename - local file name File throws: IOException - if something goes wrong. |
extractAll | final public void extractAll() throws IOException(Code) | | extract all files from the zip file.
throws: IOException - if something goes wrong. |
extractAll | final public void extractAll(boolean recursive, int recursionDepth) throws IOException(Code) | | extract all files from the zip file, with all or none subfolder, or with
subfolder up to the defined depth..
Parameters: recursive - should all subfolder be extracted. Parameters: recursionDepth - if recursive = true, how depth- throws: IOException - if something goes wrong. |
getFile | final public File getFile()(Code) | | getting the archive file. |
|
|