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

wotifgroup/jopfli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

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.

Releases

No releases published

Packages

No packages published

Languages