mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Merge pull request #496 from dicej/deflateoutputstream
override write(byte[]) in DeflaterOutputStream
This commit is contained in:
commit
616630f72f
@ -39,6 +39,10 @@ public class DeflaterOutputStream extends FilterOutputStream {
|
|||||||
write(buffer, 0, 1);
|
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 {
|
public void write(byte[] b, int offset, int length) throws IOException {
|
||||||
// error condition checking
|
// error condition checking
|
||||||
if (deflater.finished()) {
|
if (deflater.finished()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user