mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
override write(byte[]) in DeflaterOutputStream
Otherwise, it will inherit the version from FilterOutputStream, which is not consistent with the write(byte[],int,int) or write(int) implementations.
This commit is contained in:
parent
a2c0319af2
commit
212e1977aa
@ -39,6 +39,10 @@ public class DeflaterOutputStream extends FilterOutputStream {
|
||||
write(buffer, 0, 1);
|
||||
}
|
||||
|
||||
public void write(byte[] b) throws IOException {
|
||||
write(b, 0, b.length);
|
||||
}
|
||||
|
||||
public void write(byte[] b, int offset, int length) throws IOException {
|
||||
// error condition checking
|
||||
if (deflater.finished()) {
|
||||
|
Loading…
Reference in New Issue
Block a user