Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.rgw.compress
Class GLZ

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

public class GLZ
extends java.lang.Object

GLZ is a simple implementation of a variation of the lempel-ziv algorithm. It compresses much less than zip, but is fast enough to be implemented in pure Java. (I did program it in assembler originally in the early 90's though; this alorithm programmed in assembler and running on a 80386 of those days was even slower than running on a computer of today in this java programm, which is essentially a transscript of the original Assembler source)

Author:
Gerry

Constructor Summary
GLZ()
           
 
Method Summary
 int compress(java.io.InputStream in, java.io.OutputStream o)
           
 java.lang.String decodeString(byte[] i)
           
 byte[] encodeString(java.lang.String input)
           
 void expand(java.io.InputStream i, java.io.OutputStream o)
           
static java.lang.String Version()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLZ

public GLZ()
Method Detail

Version

public static java.lang.String Version()

compress

public int compress(java.io.InputStream in,
                    java.io.OutputStream o)
             throws java.io.IOException
Throws:
java.io.IOException

expand

public void expand(java.io.InputStream i,
                   java.io.OutputStream o)
            throws java.io.IOException
Throws:
java.io.IOException

encodeString

public byte[] encodeString(java.lang.String input)

decodeString

public java.lang.String decodeString(byte[] i)

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis