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