Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.rgw.compress
Class CompEx

java.lang.Object
  extended by ch.rgw.compress.CompEx

public class CompEx
extends java.lang.Object

Compressor/Expander


Field Summary
static int BZIP2
           
static int GLZ
           
static int HUFF
           
static int NONE
           
static int RLL
           
static int ZIP
           
 
Constructor Summary
CompEx()
           
 
Method Summary
static byte[] Compress(byte[] in, int mode)
           
static byte[] Compress(java.io.InputStream in, int mode)
           
static byte[] Compress(java.lang.String in, int mode)
           
static byte[] CompressBZ2(java.io.InputStream in)
           
static byte[] CompressGLZ(java.io.InputStream in)
           
static byte[] CompressZIP(java.io.InputStream in)
           
static byte[] expand(byte[] in)
           
static byte[] expand(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

GLZ

public static final int GLZ
See Also:
Constant Field Values

RLL

public static final int RLL
See Also:
Constant Field Values

HUFF

public static final int HUFF
See Also:
Constant Field Values

BZIP2

public static final int BZIP2
See Also:
Constant Field Values

ZIP

public static final int ZIP
See Also:
Constant Field Values
Constructor Detail

CompEx

public CompEx()
Method Detail

Compress

public static final byte[] Compress(java.lang.String in,
                                    int mode)

Compress

public static final byte[] Compress(byte[] in,
                                    int mode)

Compress

public static final byte[] Compress(java.io.InputStream in,
                                    int mode)

CompressGLZ

public static byte[] CompressGLZ(java.io.InputStream in)
                          throws java.io.IOException
Throws:
java.io.IOException

CompressBZ2

public static byte[] CompressBZ2(java.io.InputStream in)
                          throws java.lang.Exception
Throws:
java.lang.Exception

CompressZIP

public static byte[] CompressZIP(java.io.InputStream in)
                          throws java.lang.Exception
Throws:
java.lang.Exception

expand

public static byte[] expand(byte[] in)

expand

public static byte[] expand(java.io.InputStream in)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis