Class ZLdecode
java.lang.Object
ZLdecode
- public class ZLdecode
- extends java.lang.Object
This class implements the decoding part of the
Ziv-Lempel text compression algorithm. Usage
java ZLdecoding source.txt dest.txt
|
Method Summary |
static java.lang.String |
fromFile(java.lang.String name)
|
static void |
init(java.lang.String[] t)
Initializes the dictionnary. |
static void |
main(java.lang.String[] args)
|
static void |
toFile(java.lang.String name,
java.lang.String s)
|
static java.lang.String |
ZLdecoding(java.lang.String s)
Implements ZLdecoding(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZLdecode
public ZLdecode()
init
public static void init(java.lang.String[] t)
- Initializes the dictionnary.
ZLdecoding
public static java.lang.String ZLdecoding(java.lang.String s)
- Implements
ZLdecoding().
fromFile
public static java.lang.String fromFile(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
toFile
public static void toFile(java.lang.String name,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException