mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
libbrotli jni header #267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @enexusde on GitHub (Dec 17, 2018).
I need to compress in java.
The problem: There is no fast encoder in java.
The idea: Native bind libbrotli to java using JNI. Publish the Java-Class in github.
Example:
Write class:
call javah to create
com_google_brotli_BrotliEncoder.hImplement the header in libbrotli
@eustas commented on GitHub (Dec 17, 2018):
I believe https://github.com/google/brotli/tree/master/java/org/brotli/wrapper/enc is exactly what you want =) Especially Encoder.compress (see https://github.com/google/brotli/blob/master/java/org/brotli/wrapper/enc/Encoder.java#L202)
@enexusde commented on GitHub (Dec 18, 2018):
Looks good.