|
||||||||||
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,
java.io.OutputStream zOut)
compress a resource to an output stream |
protected void |
compressFile(java.io.File file,
java.io.OutputStream zOut)
Deprecated. Use compress(PlexusIoResource, OutputStream) . |
void |
execute()
validate, then hand off to the subclass |
java.io.File |
getDestFile()
|
org.codehaus.plexus.components.io.resources.PlexusIoResource |
getSource()
The resource to compress; required. |
java.io.File |
getSourceFile()
Deprecated. Use getSource() . |
void |
setDestFile(java.io.File compressFile)
the required destination file. |
void |
setSource(org.codehaus.plexus.components.io.resources.PlexusIoResource source)
The resource to compress; required. |
void |
setSourceFile(java.io.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(java.io.File compressFile)
compressFile
- public java.io.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(java.io.File srcFile)
getSource()
.
public java.io.File getSourceFile()
getSource()
.
public void execute() throws ArchiverException
BuildException
ArchiverException
protected void compressFile(java.io.File file, java.io.OutputStream zOut) throws java.io.IOException
compress(PlexusIoResource, OutputStream)
.
java.io.IOException
protected void compress(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, java.io.OutputStream zOut) throws java.io.IOException
java.io.IOException
public abstract void compress() throws ArchiverException
ArchiverException
public abstract void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |