ch.rgw.compress
Class CompEx
java.lang.Object
ch.rgw.compress.CompEx
public class CompEx
- extends java.lang.Object
Compressor/Expander
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 |
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
CompEx
public CompEx()
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)
Copyright 2005-2011 by Gerry Weirich, Elexis