Log4j 1.3alpha-3

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.
 
Constructor Summary
Compress()
           
 
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
 

Field Detail

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
Constructor Detail

Compress

public Compress()
Method Detail

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)

Log4j 1.3alpha-3

Copyright 2000-2003 Apache Software Foundation.