Click here to Skip to main content
Click here to Skip to main content

LZW Compression Algorithm Implemented in Java

, 13 Aug 2006
Rate this:
Please Sign up or sign in to vote.
This article provides an implementation of the LZW compression algorithm in Java

Introduction

I recently had the opportunity to look into compression for a project. I had to implement the Lempel-Ziv-Welch (LZW) algorithm for mobile phones in J2ME but before that, I implemented it in Java for testing purposes.

I wish to thank Mark Nelson for pointing out that the Unisys patent on this algorithm has expired, so there are fewer headaches in the use of this algorithm.

Description

This implementation is actually based on the C version of the implementation by Mark Nelson at http://marknelson.us/1989/10/01/lzw-data-compression/. Please refer to this website for further details about the algorithm. The Java adaptation is designed to work for ASCII encoded text files.

History

  • 13th August, 2006: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

fahadkhowaja
Web Developer
Singapore Singapore
No Biography provided

Comments and Discussions

 
GeneralCongratulations and to follow !!! PinmemberPipa_Soft15-Aug-06 5:41 
Congratulations and to follow !!!
 
Congratulations for fahadkhowaja and by the way to Mark, this is an important effort in order to put in a very esay way the compression algorithms.
 
I exhort to you in order to continue this effort with another algorithms like as CRC, ZIP, Huffman Codes, JPEG, GIF, TIFF, BMP -- No moore Smile | :)
 
And i have an obvious question, off course the decompresion LZW java program must we (The readers) have to do it ???
 
Greetings,
 
Pipa
 
Pipa
GeneralRe: Congratulations and to follow !!! Pinmemberpakhtoon18-Nov-07 12:47 
GeneralRe: Congratulations and to follow !!! Pinmemberskumarmails17-Jan-10 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 13 Aug 2006
Article Copyright 2006 by fahadkhowaja
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid