Zopfli native bindings for Java.
TODO
import com.wotifgroup.zopfli.Jopfli
// ...
byte[] input = "Hello, world".getBytes(Charset.defaultCharset());
// Gzip style.
byte[] output = Jopfli.gzip(input), Options.SMALL_FILE_DEFAULTS);
// Zlib style.
byte[] output = Jopfli.zlib(input), Options.SMALL_FILE_DEFAULTS);
// Raw DEFLATE style.
byte[] output = Jopfli.deflate(input), Options.SMALL_FILE_DEFAULTS);
// output will now contain Zopfli-flavoured deflate (with zlib/gzip headers)
Check out Options.
- Bundle Windows/OSX native libraries.
- Investigate (Input|Output)Stream support.
This project has been licensed under ASL 2.0. See the LICENSE file for more information.