org.codehaus.plexus.archiver.util
public abstract class Compressor extends AbstractLogEnabled
Version: $Revision: 2436 $ $Date: 2005-09-01 13:20:41 -0400 (Thu, 01 Sep 2005) $
Field Summary | |
---|---|
File | destFile |
File | sourceFile |
Method Summary | |
---|---|
protected abstract void | compress()
subclasses must implement this method to do their compression |
void | compressFile(InputStream in, OutputStream zOut)
compress a stream to an output stream
|
protected void | compressFile(File file, OutputStream zOut)
compress a file to an output stream
|
void | execute()
validate, then hand off to the subclass
|
File | getDestFile() |
File | getSourceFile() |
void | setDestFile(File compressFile)
the required destination file.
|
void | setSourceFile(File srcFile)
the file to compress; required.
|
void | validate()
validation routine
|
Parameters: in zOut
Throws: IOException
Parameters: file zOut
Throws: IOException
Throws: BuildException
Parameters: compressFile
Parameters: srcFile
Throws: ArchiverException if anything is invalid