Merge pull request #496 from dicej/deflateoutputstream

override write(byte[]) in DeflaterOutputStream
This commit is contained in:
Joshua Warner 2016-08-25 00:36:45 +00:00 committed by GitHub
commit 616630f72f

View File

@ -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()) {