public class Expand extends Object
| Constructor and Description |
|---|
Expand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Do the work.
|
protected void |
expandFile(File srcF,
File dir) |
protected void |
extractFile(File srcF,
File dir,
InputStream compressedInputStream,
String entryName,
Date entryDate,
boolean isDirectory) |
void |
setDest(File d)
Set the destination directory.
|
void |
setOverwrite(boolean b) |
void |
setSrc(File s)
Set the path to zip-file.
|
public void execute()
throws Exception
Exception - Thrown in unrecoverable error.protected void extractFile(File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory) throws Exception
Exceptionpublic void setDest(File d)
d - Path to the directory.public void setSrc(File s)
s - Path to zip-file.public void setOverwrite(boolean b)
b - Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.