Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.rgw.compress
Class RLL

java.lang.Object
  extended by 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
 

Constructor Detail

RLL

public RLL()
Method Detail

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.

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis