@Override public void write(int b) throws IOException { this.write(new byte[] { (byte) b }, 0, 1); }
FixedLengthOutputStream flos = new FixedLengthOutputStream( IoUtil.unclosableOutputStream(out), contentLength ); this.writeBody(prefix, flos); flos.close(); return;
FixedLengthOutputStream flos = new FixedLengthOutputStream( OutputStreams.unclosable(out), contentLength ); this.writeBody(loggingPrefix, flos); flos.close(); return;
@Override public void write(int b) throws IOException { this.write(new byte[] { (byte) b }, 0, 1); }