diff options
Diffstat (limited to 'java/org/brotli/wrapper/enc/EncoderJNI.java')
-rwxr-xr-x | java/org/brotli/wrapper/enc/EncoderJNI.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/org/brotli/wrapper/enc/EncoderJNI.java b/java/org/brotli/wrapper/enc/EncoderJNI.java index 01d787b..6627f5a 100755 --- a/java/org/brotli/wrapper/enc/EncoderJNI.java +++ b/java/org/brotli/wrapper/enc/EncoderJNI.java @@ -25,7 +25,7 @@ class EncoderJNI { } static class Wrapper { - protected final long[] context = new long[4]; + protected final long[] context = new long[5]; private final ByteBuffer inputBuffer; Wrapper(int inputBufferSize, int quality, int lgwin) @@ -71,6 +71,10 @@ class EncoderJNI { return context[3] != 0; } + boolean isFinished() { + return context[4] != 0; + } + ByteBuffer getInputBuffer() { return inputBuffer; } |