|
||||||||||
| 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 | |
|---|---|
abstract void |
close()
subclasses must implement this method to cleanup after compression this is public so the process of compression and closing can be dealt with separately. |
abstract void |
compress()
subclasses must implement this method to do their compression this is public so the process of compression and closing can be dealt with separately. |
protected void |
compress(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
OutputStream zOut)
compress a resource to an output stream |
protected void |
compressFile(File file,
OutputStream zOut)
Deprecated. Use compress(PlexusIoResource, OutputStream). |
void |
execute()
validate, then hand off to the subclass |
File |
getDestFile()
|
org.codehaus.plexus.components.io.resources.PlexusIoResource |
getSource()
The resource to compress; required. |
File |
getSourceFile()
Deprecated. Use getSource(). |
void |
setDestFile(File compressFile)
the required destination file. |
void |
setSource(org.codehaus.plexus.components.io.resources.PlexusIoResource source)
The resource to compress; required. |
void |
setSourceFile(File srcFile)
Deprecated. Use getSource(). |
| 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(File compressFile)
compressFile - public File getDestFile()
public void setSource(org.codehaus.plexus.components.io.resources.PlexusIoResource source)
public org.codehaus.plexus.components.io.resources.PlexusIoResource getSource()
public void setSourceFile(File srcFile)
getSource().
public File getSourceFile()
getSource().
public void execute()
throws ArchiverException
BuildException
ArchiverException
protected void compressFile(File file,
OutputStream zOut)
throws IOException
compress(PlexusIoResource, OutputStream).
IOException
protected void compress(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
OutputStream zOut)
throws IOException
IOException
public abstract void compress()
throws ArchiverException
ArchiverExceptionpublic abstract void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||