|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.trec.server.Extractor
public class Extractor
An extractor class can be used to extract ZIP and JAR files
| Constructor Summary | |
|---|---|
Extractor()
create a new instance of an Extractor object |
|
| Method Summary | |
|---|---|
boolean |
delete(File file,
String destPath)
delete files extracted through this class, given that extracted files were not moved Does not delete directories |
void |
extract(File file,
String destPath)
extract a given archive file to a given path |
void |
unzip(ZipFile zipfile,
ZipEntry zipentry,
String destPath)
unzip a given entry of a given zip file to a given location |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Extractor()
| Method Detail |
|---|
public boolean delete(File file,
String destPath)
throws ZipException,
IOException
Does not delete directories
file - zip filedestPath - destination, zip file was extracted to
ZipException
IOException
public void extract(File file,
String destPath)
throws ZipException,
IOException
file - the archive file to extractdestPath - the path to the destination location for the extracted content
ZipException
IOException
public void unzip(ZipFile zipfile,
ZipEntry zipentry,
String destPath)
throws IOException
zipfile - the zip file to read an entry fromzipentry - the zip entry to readdestPath - the path to the destination location for the extracted content
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||