@Override public void flush() throws IOException { if (closed) throw new IOException("Stream closed"); super.flush(); }
@Override public void write(int b) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b); }
@Override public void close() throws IOException { errorStreamClosedSignal.countDown(); super.close(); } }, false);
@Override public void close() throws IOException { outputStreamClosedSignal.countDown(); super.close(); } }, false);
@Override public void write(byte[] b, int off, int len) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b, off, len); }
@Override public void flush() throws IOException { if (closed) throw new IOException("Stream closed"); super.flush(); }
@Override public void write(byte[] b) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b); }
@Override public void write(byte[] b, int off, int len) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b, off, len); }
@Override public void write(int b) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b); }
@Override public void write(byte[] b) throws IOException { if (closed) throw new IOException("Stream closed"); super.write(b); }