Skip to content

Commit 8bf8066

Browse files
divijvaidyaluben
authored andcommitted
make set dict methods public
1 parent d65490e commit 8bf8066

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/github/luben/zstd/BaseZstdBufferDecompressingStreamNoFinalizer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public abstract class BaseZstdBufferDecompressingStreamNoFinalizer implements Cl
1313
private int consumed;
1414
private int produced;
1515

16-
public BaseZstdBufferDecompressingStreamNoFinalizer(ByteBuffer source) {
16+
BaseZstdBufferDecompressingStreamNoFinalizer(ByteBuffer source) {
1717
this.source = source;
1818
}
1919

@@ -26,20 +26,20 @@ public BaseZstdBufferDecompressingStreamNoFinalizer(ByteBuffer source) {
2626
protected ByteBuffer refill(ByteBuffer toRefill) {
2727
return toRefill;
2828
}
29-
29+
3030
public boolean hasRemaining() {
3131
return !streamEnd && (source.hasRemaining() || !finishedFrame);
3232
}
3333

34-
BaseZstdBufferDecompressingStreamNoFinalizer setDict(byte[] dict) throws IOException {
34+
public BaseZstdBufferDecompressingStreamNoFinalizer setDict(byte[] dict) throws IOException {
3535
long size = Zstd.loadDictDecompress(stream, dict, dict.length);
3636
if (Zstd.isError(size)) {
3737
throw new ZstdIOException(size);
3838
}
3939
return this;
4040
}
4141

42-
BaseZstdBufferDecompressingStreamNoFinalizer setDict(ZstdDictDecompress dict) throws IOException {
42+
public BaseZstdBufferDecompressingStreamNoFinalizer setDict(ZstdDictDecompress dict) throws IOException {
4343
dict.acquireSharedLock();
4444
try {
4545
long size = Zstd.loadFastDictDecompress(stream, dict);
@@ -52,7 +52,7 @@ BaseZstdBufferDecompressingStreamNoFinalizer setDict(ZstdDictDecompress dict) th
5252
return this;
5353
}
5454

55-
BaseZstdBufferDecompressingStreamNoFinalizer setLongMax(int windowLogMax) throws IOException {
55+
public BaseZstdBufferDecompressingStreamNoFinalizer setLongMax(int windowLogMax) throws IOException {
5656
long size = Zstd.setDecompressionLongMax(stream, windowLogMax);
5757
if (Zstd.isError(size)) {
5858
throw new ZstdIOException(size);

0 commit comments

Comments
 (0)