|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.compressionhandler.UnZipper
public class UnZipper
This class unzips Zip files or Jars into a given folder.
Field Summary | |
---|---|
protected byte[] |
b
The buffer for reading/writing the ZipFile data |
protected java.util.SortedSet<java.lang.String> |
dirsMade
Cache of paths we've mkdir()ed. |
protected boolean |
warnedMkDir
|
protected java.util.zip.ZipInputStream |
zippy
The ZipFile that is used to read an archive |
Constructor Summary | |
---|---|
UnZipper()
Construct an UnZip object. |
Method Summary | |
---|---|
protected void |
getFile(java.util.zip.ZipEntry e,
java.lang.String unZipLocation)
Process one file from the zip, given its name. |
void |
unZip(java.lang.String fileName,
java.lang.String unzipLocation)
For a given Zip file, process each entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.zip.ZipInputStream zippy
protected byte[] b
protected java.util.SortedSet<java.lang.String> dirsMade
protected boolean warnedMkDir
Constructor Detail |
---|
public UnZipper()
Method Detail |
---|
public void unZip(java.lang.String fileName, java.lang.String unzipLocation) throws UnZipperException
fileName
- The filename to be unzipped.unzipLocation
- the location to beunzipped in.
UnZipperException
protected void getFile(java.util.zip.ZipEntry e, java.lang.String unZipLocation) throws java.io.IOException
e
- The zip entry to be unzipped.unZipLocation
- the location to be unzipped to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |