Mercurial > hg > monetdb-java
changeset 612:1d44b8a577ca
write to out, not to super when implementing FilterOutputStream
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Tue, 18 Jan 2022 13:12:55 +0100 (2022-01-18) |
parents | d2a141446e22 |
children | 9397c0b487f8 |
files | src/main/java/org/monetdb/mcl/net/MapiSocket.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/mcl/net/MapiSocket.java +++ b/src/main/java/org/monetdb/mcl/net/MapiSocket.java @@ -1268,13 +1268,13 @@ public class MapiSocket { /* cannot (yet throw new IOException("Server aborted the upload"); } handleChunking(); - super.write(b); + out.write(b); wrote(1); } @Override public void write(final byte[] b) throws IOException { - write(b, 0, b.length); + this.write(b, 0, b.length); } @Override @@ -1288,7 +1288,7 @@ public class MapiSocket { /* cannot (yet while (len > 0) { handleChunking(); int toWrite = Integer.min(len, chunkLeft); - super.write(b, off, toWrite); + out.write(b, off, toWrite); off += toWrite; len -= toWrite; wrote(toWrite);