Jvm-Brotli

Lightweight, cross-platform Java library
for the Brotli compression format

View on GitHub

Why use Jvm-Brotli?

Quality code

Up-to-date Brotli code is taken directly from the hard-working team at Google.

Easy to use

Getting Brotli in your Java application is as easy as adding a single Maven dependency.

Cross-platform

Jvm-Brotli already supports Windows, Linux and Mac OSX. More systems coming soon.

No C/C++

Handles the cross-platform compiling of C/C++ code, so you don't have to.

Semantic versioning

Adheres to semver, meaning updates won't break your code unexpectedly.

Active

Both the project and this website are receiving regular updates.

Adding Jvm-Brotli to your project is easy

  • Maven
  • Gradle
<dependency>
	<groupId>com.nixxcode.jvmbrotli</groupId>
	<artifactId>jvmbrotli</artifactId>
	<version>0.2.0</version>
	<optional>true</optional>
</dependency>
compile 'com.nixxcode.jvmbrotli:jvmbrotli:0.2.0'

We have some code samples and a fully functional example project to get you started:

Show code samples Show example project

What is the purpose of Jvm-Brotli?

Making Brotli usable in Java can be a tricky and time consuming exercise. The Brotli code is written in c/c++ and is platform dependent. This requires the use of JNI bindings.

The bindings are provided by Google, but it is still left to the Java developer to compile the source files individually for every platform they wish to support. Anybody who has dealt with JNI and native code in the past will already be familiar with the problems and complexity this approach can add to a project.

The purpose of Jvm-Brotli is to remove the headaches of dealing with JNI. It aims to make Brotli readily available and easy to access for Java developers on as many platforms as possible.

Did you find Jvm-Brotli Helpful?
If yes, please star us on Github!