@Override public void write(byte[] b) throws IOException { write(b, 0, b.length); }
@Override public void write(byte[] b, int off, int len) throws IOException { if (!written) { onFirstWrite(); written = true; } if (wrappedStream != null) { wrappedStream.write(b, off, len); } }
@Override public void write(int b) throws IOException { if (!written) { onFirstWrite(); written = true; } if (wrappedStream != null) { wrappedStream.write(b); } }