org.exist.util
Class Compressor
java.lang.Object
org.exist.util.Compressor
public class Compressor
- extends Object
Method Summary |
static byte[] |
compress(byte[] whatToCompress)
The method compress |
static byte[] |
compress(byte[] whatToCompress,
int length)
The method compress |
static byte[] |
uncompress(byte[] whatToUncompress)
The method uncompress |
static void |
uncompress(byte[] whatToUncompress,
OutputStream os)
|
Compressor
public Compressor()
compress
public static byte[] compress(byte[] whatToCompress)
throws IOException
- The method
compress
- Parameters:
whatToCompress
- a byte[]
value
- Returns:
- a
byte[]
value
- Throws:
IOException
- if an error occurs
compress
public static byte[] compress(byte[] whatToCompress,
int length)
throws IOException
- The method
compress
- Parameters:
whatToCompress
- a byte[]
valuelength
- an int
value
- Returns:
- a
byte[]
value
- Throws:
IOException
- if an error occurs
uncompress
public static byte[] uncompress(byte[] whatToUncompress)
throws IOException
- The method
uncompress
- Parameters:
whatToUncompress
- a byte[]
value
- Returns:
- a
byte[]
value
- Throws:
IOException
- if an error occurs
uncompress
public static void uncompress(byte[] whatToUncompress,
OutputStream os)
throws IOException
- Throws:
IOException
Copyright (C) Wolfgang Meier. All rights reserved.