|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.rolling.helper.ActionBase
org.apache.log4j.rolling.helper.ZipCompressAction
Compresses a file using Zip compression.
Constructor Summary | |
ZipCompressAction(File source,
File destination,
boolean deleteSource,
ULogger logger)
Create new instance of GZCompressAction. |
Method Summary | |
boolean |
execute()
Compress. |
static boolean |
execute(File source,
File destination,
boolean deleteSource,
ULogger logger)
Compress a file. |
protected void |
reportException(Exception ex)
Capture exception. |
Methods inherited from class org.apache.log4j.rolling.helper.ActionBase |
close, isComplete, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZipCompressAction(File source, File destination, boolean deleteSource, ULogger logger)
source
- file to compress, may not be null.destination
- compressed file, may not be null.deleteSource
- if true, attempt to delete file on completion. Failure to delete
does not cause an exception to be thrown or affect return value.logger
- logger, may be null.Method Detail |
public boolean execute() throws IOException
execute
in interface Action
execute
in class ActionBase
IOException
- on IO exception.public static boolean execute(File source, File destination, boolean deleteSource, ULogger logger) throws IOException
source
- file to compress, may not be null.destination
- compressed file, may not be null.deleteSource
- if true, attempt to delete file on completion. Failure to delete
does not cause an exception to be thrown or affect return value.logger
- logger, may be null.
IOException
- on IO exception.protected void reportException(Exception ex)
reportException
in class ActionBase
ex
- exception.
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |