public class Expand
extends java.lang.Object
Constructor and Description |
---|
Expand() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Do the work.
|
protected void |
expandFile(java.io.File srcF,
java.io.File dir)
Description of the Method
|
protected void |
extractFile(java.io.File srcF,
java.io.File dir,
java.io.InputStream compressedInputStream,
java.lang.String entryName,
java.util.Date entryDate,
boolean isDirectory)
Description of the Method
|
void |
setDest(java.io.File d)
Set the destination directory.
|
void |
setOverwrite(boolean b)
Should we overwrite files in dest, even if they are newer than the
corresponding entries in the archive?
|
void |
setSrc(java.io.File s)
Set the path to zip-file.
|
public void execute() throws java.lang.Exception
java.lang.Exception
- Thrown in unrecoverable error.protected void expandFile(java.io.File srcF, java.io.File dir) throws java.lang.Exception
java.lang.Exception
protected void extractFile(java.io.File srcF, java.io.File dir, java.io.InputStream compressedInputStream, java.lang.String entryName, java.util.Date entryDate, boolean isDirectory) throws java.lang.Exception
java.lang.Exception
public void setDest(java.io.File d)
d
- Path to the directory.public void setSrc(java.io.File s)
s
- Path to zip-file.public void setOverwrite(boolean b)