org.dellroad.lzma.demo.public.LZMADemo.html Maven / Gradle / Ivy
Show all versions of gwt-lzma Show documentation
GWT-LZMA Demo
LZMA GWT module demo
This page is an example GWT application that demonstrates
the use of the GWT-LZMA compression module.
The GWT-LZMA compression module implements the LZMA
compression algorithm in GWT-compiled Javascript.
Compressing:
Enter any content into the left window and press "Compress" to compress it.
When finished, the right window will display the hexadecimal representation
of the compressed content of the left window (after encoding it in UTF-8).
Use the pulldown to choose from fastest (Level 1) to best (Level 9) compression; lower levels
are more appropriate for Javascript running in a browser.
Decompressing:
Enter whitespace-separated hexadecimal bytes in the right window corresponding
to compressed output of the LZMA algorithm.
Press the "Decompress" button to decompress the data and the original will be shown back in
the left window (decoded from UTF-8).
On UNIX machines, you can generate input for the right window yourself using commands like this:
$ cat /etc/motd | lzma -3 | hexdump -C | cut -c9-60
Warning: The LZMA algorithm was not designed to run in a browser as Javascript.
Use of the higher compression levels (in either direction) and/or large files may cause your browser to explode.
This GWT-based Javascript application runs entirely within your web browser.