@Override public void close() throws IOException { out.close(); }
@Override public void flush() throws IOException { out.flush(); }
public Charset getCharset() { return out.getCharset(); }
public final void write(byte[] bytes) throws IOException { if (!failed) { try { out.write(bytes); } catch (IOException e) { handle(e); } } }
public void write(byte[] bytes) throws IOException { out.write(bytes); }
public final void close() throws IOException { try { out.close(); } catch (IOException e) { handle(e); } }
@Override protected void write(char c) throws IOException { out.write(c); }
public final void flush() throws IOException { if (!failed && !flushOnClose) { try { out.flush(); } catch (IOException e) { handle(e); } } }
public void write(byte[] bytes, int off, int len) throws IOException { out.write(bytes, off, len); }
public final void write(byte[] bytes, int off, int len) throws IOException { if (!failed) { try { out.write(bytes, off, len); } catch (IOException e) { handle(e); } } }
@Override protected void write(String s) throws IOException { out.write(s); }
public final void write(byte b) throws IOException { if (!failed) { try { out.write(b); } catch (IOException e) { handle(e); } } }
public void write(byte b) throws IOException { out.write(b); } }
/** * Flush the output stream. This allows for the outputstream * to be independently flushed regardless of the flushOnClose setting. */ public void flushOutputStream() throws IOException { if (!failed) { try { out.flush(); } catch (IOException e) { handle(e); } } } }
@Override public final void write(char[] cbuf) throws IOException { if (!failed) { try { encoder.encode(cbuf, 0, cbuf.length, out); } catch (IOException e) { handle(e); } } }
@Override public final void write(String str) throws IOException { if (!failed) { try { encoder.encode(str, 0, str.length(), out); } catch (IOException e) { handle(e); } } }
public final void write(char[] cbuf, int off, int len) throws IOException { if (!failed) { try { encoder.encode(cbuf, off, len, out); } catch (IOException e) { handle(e); } } }
@Override // Note that the parent method has a synchronisation that we want to avoid // for performance reasons public final void write(int c) throws IOException { if (!failed) { try { encoder.encode((char)c, out); } catch (IOException e) { handle(e); } } }
@Override // Note that the parent method has a synchronisation that we want to avoid // for performance reasons public final void write(String str, int off, int len) throws IOException { if (!failed) { try { encoder.encode(str, off, len, out); } catch (IOException e) { handle(e); } } }