|
||||||||||
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
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 |
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. |
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 |
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()
public void execute() throws ArchiverException
BuildException
ArchiverException
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 |