Skip to content

Commit

Permalink
Make Encoder types public (#145)
Browse files Browse the repository at this point in the history
Motivation:

To allow for alternative Encoder use, make Encoder and
EncoderJNI.Operation public.

Modification:

Made Encoder and EncoderJNI.Operation public.

Result:

Fixes #144
  • Loading branch information
joakime authored Jul 4, 2024
1 parent 2990e74 commit de072a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Encoder {
* @param params encoding parameters
* @param inputBufferSize read buffer size
*/
Encoder(WritableByteChannel destination, Parameters params, int inputBufferSize) throws IOException {
public Encoder(WritableByteChannel destination, Parameters params, int inputBufferSize) throws IOException {
if (inputBufferSize <= 0) {
throw new IllegalArgumentException("buffer size must be positive");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class EncoderJNI {
private static native ByteBuffer nativePrepareDictionary(ByteBuffer dictionary, long type);
private static native void nativeDestroyDictionary(ByteBuffer dictionary);

enum Operation {
public enum Operation {
PROCESS,
FLUSH,
FINISH
Expand Down

0 comments on commit de072a2

Please sign in to comment.