mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Changes to add end function to Inflater and Deflater per the java spec
This commit is contained in:
parent
92adc83caf
commit
6b4b4b0b8c
@ -147,6 +147,10 @@ public class Deflater {
|
||||
boolean finish,
|
||||
int[] results);
|
||||
|
||||
public void end() {
|
||||
dispose();
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
if (peer != 0) {
|
||||
dispose(peer);
|
||||
|
@ -127,6 +127,10 @@ public class Inflater {
|
||||
byte[] output, int outputOffset, int outputLength,
|
||||
int[] results);
|
||||
|
||||
public void end() {
|
||||
dispose();
|
||||
}
|
||||
|
||||
public void dispose() {
|
||||
if (peer != 0) {
|
||||
dispose(peer);
|
||||
|
Loading…
Reference in New Issue
Block a user