Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.
wotifgroupPublic archive

About

Zopfli bindings for Java.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jopfli v0.0.1

Zopfli native bindings for Java.

Installation

TODO

Usage

	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)

Configuring

Check out Options.

TODO

  • Bundle Windows/OSX native libraries.
  • Investigate (Input|Output)Stream support.

License

This project has been licensed under ASL 2.0. See the LICENSE file for more information.

About

Zopfli bindings for Java.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages