/gwt-lzma

GWT module for LZMA compression

Primary LanguageHTML

This project is read only and was moved to gitlab: https://gitlab.com/ManfredTremmel/gwt-lzma

gwt-lzma is a GWT module that implements the Lempel-Ziv-Markov chain (LZMA) compression algorithm. This is a generic compression library, i.e., compression in Javascript, not just compression of Javascript (i.e., "minification").

The code is adapted from the Java LZMA implementation found in the LZMA SDK. The compressor and decompressor implement GWT's Scheduler.RepeatingCommand interface so that other browser activity may continue while processing occurs.

See a working demo here; the source code to the demo is here.

View the Javadoc API here.

Note: The code works, but LZMA was not designed to run in a web browser as Javascript. Processing at higher compression levels (which use lots of memory) and/or with huge files may cause your browser to explode.

Also: A standalone, non-GWT version of this code has been created as well.

Version 1.2-2 requires GWT >= 2.8.0.