|
||||||||||
| 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
public final class ZipCompressAction
Compresses a file using Zip compression.
| Constructor Summary | |
|---|---|
ZipCompressAction(java.io.File source,
java.io.File destination,
boolean deleteSource)
Create new instance of GZCompressAction. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Compress. |
static boolean |
execute(java.io.File source,
java.io.File destination,
boolean deleteSource)
Compress a file. |
protected void |
reportException(java.lang.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(java.io.File source,
java.io.File destination,
boolean deleteSource)
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.| Method Detail |
|---|
public boolean execute()
throws java.io.IOException
execute in interface Actionexecute in class ActionBasejava.io.IOException - on IO exception.
public static boolean execute(java.io.File source,
java.io.File destination,
boolean deleteSource)
throws java.io.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.
java.io.IOException - on IO exception.protected void reportException(java.lang.Exception ex)
reportException in class ActionBaseex - exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.