|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.archiver.util.Compressor
public abstract class Compressor
| Field Summary | |
|---|---|
private java.io.File |
destFile
|
private java.io.File |
sourceFile
|
| Constructor Summary | |
|---|---|
Compressor()
|
|
| Method Summary | |
|---|---|
protected abstract void |
compress()
subclasses must implement this method to do their compression |
protected void |
compressFile(java.io.File file,
java.io.OutputStream zOut)
compress a file to an output stream |
private void |
compressFile(java.io.InputStream in,
java.io.OutputStream zOut)
compress a stream to an output stream |
void |
execute()
validate, then hand off to the subclass |
java.io.File |
getDestFile()
|
java.io.File |
getSourceFile()
|
void |
setDestFile(java.io.File compressFile)
the required destination file. |
void |
setSourceFile(java.io.File srcFile)
the file to compress; required. |
private void |
validate()
validation routine |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.File destFile
private java.io.File sourceFile
| Constructor Detail |
|---|
public Compressor()
| Method Detail |
|---|
public void setDestFile(java.io.File compressFile)
compressFile - public java.io.File getDestFile()
public void setSourceFile(java.io.File srcFile)
srcFile - public java.io.File getSourceFile()
private void validate()
throws ArchiverException
ArchiverException - if anything is invalid
public void execute()
throws ArchiverException
BuildException
ArchiverException
private void compressFile(java.io.InputStream in,
java.io.OutputStream zOut)
throws java.io.IOException
in - zOut -
java.io.IOException
protected void compressFile(java.io.File file,
java.io.OutputStream zOut)
throws java.io.IOException
file - zOut -
java.io.IOException
protected abstract void compress()
throws ArchiverException
ArchiverException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||