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()
Expand a file.
|
protected void |
extractFile(java.io.InputStream compressedInputStream,
java.lang.String entryName,
java.util.Date entryDate,
boolean isDirectory)
Extract a file.
|
void |
setDest(java.io.File d)
Set the destination directory.
|
void |
setFileUtils(org.apache.tools.ant.util.FileUtils utils) |
void |
setOverwrite(boolean shouldOverwrite)
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.io.IOException
java.io.IOException - If an error occurs.protected void expandFile()
throws java.io.IOException
java.io.IOExceptionprotected void extractFile(java.io.InputStream compressedInputStream,
java.lang.String entryName,
java.util.Date entryDate,
boolean isDirectory)
throws java.io.IOException
compressedInputStream - The input stream.entryName - The entry name.entryDate - The entry date.isDirectory - Flag indicating if is directory.java.io.IOException - If an error occurs while attempting to
extract the file.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 shouldOverwrite)
shouldOverwrite - true to indicate that files
should be overwritten, otherwise false.public void setFileUtils(org.apache.tools.ant.util.FileUtils utils)
utils - Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.