org.apache.log4j.rolling.helper
Class Compress
java.lang.Object
|
+--org.apache.log4j.rolling.helper.Compress
- public class Compress
- extends java.lang.Object
The Compression
class implements ZIP and GZ
file compression/decompression methods.
- Since:
- 1.3
- Author:
- Ceki Gülcü
Field Summary |
static int |
GZ
|
static java.lang.String |
GZ_STR
String constant representing compression in the GZIP format. |
static int |
NONE
|
static java.lang.String |
NONE_STR
String constant representing no compression. |
static int |
ZIP
|
static java.lang.String |
ZIP_STR
String constant representing compression in the ZIP format. |
Method Summary |
static void |
GZCompress(java.lang.String nameOfFile2gz)
|
static void |
GZCompress(java.lang.String nameOfFile2gz,
java.lang.String nameOfgzedFile)
|
static void |
ZIPCompress(java.lang.String nameOfFile2zip)
|
static void |
ZIPCompress(java.lang.String nameOfFile2zip,
java.lang.String nameOfZippedFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- See Also:
- Constant Field Values
GZ
public static final int GZ
- See Also:
- Constant Field Values
ZIP
public static final int ZIP
- See Also:
- Constant Field Values
NONE_STR
public static final java.lang.String NONE_STR
- String constant representing no compression. The value of this
constant is "NONE".
- See Also:
- Constant Field Values
GZ_STR
public static final java.lang.String GZ_STR
- String constant representing compression in the GZIP format. The
value of this constant is "GZ".
- See Also:
- Constant Field Values
ZIP_STR
public static final java.lang.String ZIP_STR
- String constant representing compression in the ZIP format. The
value of this constant is "ZIP".
- See Also:
- Constant Field Values
Compress
public Compress()
ZIPCompress
public static void ZIPCompress(java.lang.String nameOfFile2zip)
ZIPCompress
public static void ZIPCompress(java.lang.String nameOfFile2zip,
java.lang.String nameOfZippedFile)
GZCompress
public static void GZCompress(java.lang.String nameOfFile2gz)
GZCompress
public static void GZCompress(java.lang.String nameOfFile2gz,
java.lang.String nameOfgzedFile)
Copyright 2000-2003 Apache Software Foundation.