Logback API
Version 0.9.8

ch.qos.logback.core.rolling.helper
Class Compress

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.rolling.helper.Compress
All Implemented Interfaces:
ContextAware

public class Compress
extends ContextAwareBase

The Compression class implements ZIP and GZ file compression/decompression methods.

Author:
Ceki Gülcü

Field Summary
static int GZ
           
static String GZ_STR
          String constant representing compression in the GZIP format.
static int NONE
           
static String NONE_STR
          String constant representing no compression.
static int ZIP
           
static String ZIP_STR
          String constant representing compression in the ZIP format.
 
Constructor Summary
Compress()
           
 
Method Summary
 void GZCompress(String nameOfFile2gz)
           
 void GZCompress(String nameOfFile2gz, String nameOfgzedFile)
           
 String toString()
           
 void ZIPCompress(String nameOfFile2zip)
           
 void ZIPCompress(String nameOfFile2zip, String nameOfZippedFile)
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 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 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 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 void ZIPCompress(String nameOfFile2zip)

ZIPCompress

public void ZIPCompress(String nameOfFile2zip,
                        String nameOfZippedFile)

GZCompress

public void GZCompress(String nameOfFile2gz)

GZCompress

public void GZCompress(String nameOfFile2gz,
                       String nameOfgzedFile)

toString

public String toString()
Overrides:
toString in class Object

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.