ch.rgw.compress
Class RLL
java.lang.Object
ch.rgw.compress.RLL
public class RLL
- extends java.lang.Object
RLL Commpressor/Decompressor
- Author:
- Gerry
Constructor Summary |
RLL()
|
Method Summary |
static byte[] |
compress(byte rllchar,
byte[] source)
compress the source array. use rllchar as character to indicate repetition. if rllchar is
0x0, the least frequent character from source will be used. |
static byte[] |
expand(byte[] source)
Expand a rll-compressed array |
static java.lang.String |
Version()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RLL
public RLL()
Version
public static java.lang.String Version()
compress
public static byte[] compress(byte rllchar,
byte[] source)
- compress the source array. use rllchar as character to indicate repetition. if rllchar is
0x0, the least frequent character from source will be used.
- Returns:
- a newly created array with the rll compressed data.
expand
public static byte[] expand(byte[] source)
- Expand a rll-compressed array
- Parameters:
source
- the compressed array. First byte must be the rllchar.
- Returns:
- a newly created array with the expanded data.
Copyright 2005-2011 by Gerry Weirich, Elexis