| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| protected File | |
| private Resource | |
| protected File |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfigured(ResourceCollection
the resource to pack as a single element Resource collection. a)Set the source resource. |
| public void | |
| public Resource | |
| protected abstract void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected boolean | |
| private void | |
| private void | zipFile(InputStream
the stream to zip in, OutputStream the output stream zOut)zip a stream to an output stream |
| protected void | |
| protected void | zipResource(Resource
the resource to zip resource, OutputStream the output stream zOut)zip a resource to an output stream |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| source | back to summary |
|---|---|
| protected File source | |
| src | back to summary |
|---|---|
| private Resource src | |
| zipFile | back to summary |
|---|---|
| protected File zipFile | |
| Pack | back to summary |
|---|---|
| public Pack() | |
| addConfigured | back to summary |
|---|---|
| public void addConfigured(ResourceCollection a) Set the source resource.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. validate, then hand off to the subclass
| |
| getSrcResource | back to summary |
|---|---|
| public Resource getSrcResource() The source resource.
| |
| pack | back to summary |
|---|---|
| protected abstract void pack() subclasses must implement this method to do their compression | |
| setDestfile | back to summary |
|---|---|
| public void setDestfile(File zipFile) the required destination file.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(File src) the file to compress; required.
| |
| setSrcResource | back to summary |
|---|---|
| public void setSrcResource(Resource src) The resource to pack; required.
| |
| setZipfile | back to summary |
|---|---|
| public void setZipfile(File zipFile) the required destination file.
| |
| supportsNonFileResources | back to summary |
|---|---|
| protected boolean supportsNonFileResources() Whether this task can deal with non-file resources. This implementation returns false.
| |
| validate | back to summary |
|---|---|
| private void validate() throws BuildException validation routine
| |
| zipFile | back to summary |
|---|---|
| private void zipFile(InputStream in, OutputStream zOut) throws IOException zip a stream to an output stream
| |
| zipFile | back to summary |
|---|---|
| protected void zipFile(File file, OutputStream zOut) throws IOException zip a file to an output stream
| |
| zipResource | back to summary |
|---|---|
| protected void zipResource(Resource resource, OutputStream zOut) throws IOException zip a resource to an output stream
| |