/** * Invokes the delegate's <code>write(int)</code> method. * @param idx the character to write * @throws IOException if an I/O error occurs */ @Override public void write(final int idx) throws IOException { try { beforeWrite(1); out.write(idx); afterWrite(1); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @throws IOException if an I/O error occurs */ @Override public void write(final String str) throws IOException { try { int len = 0; if (str != null) { len = str.length(); } beforeWrite(len); out.write(str); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(char[], int, int)</code> method. * @param chr the characters to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final char[] chr, final int st, final int len) throws IOException { try { beforeWrite(len); out.write(chr, st, len); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final String str, final int st, final int len) throws IOException { try { beforeWrite(len); out.write(str, st, len); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(char[])</code> method. * @param chr the characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final char[] chr) throws IOException { try { int len = 0; if (chr != null) { len = chr.length; } beforeWrite(len); out.write(chr); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>append(char)</code> method. * @param c The character to write * @return this writer * @throws IOException if an I/O error occurs * @since 2.0 */ @Override public Writer append(final char c) throws IOException { try { beforeWrite(1); out.append(c); afterWrite(1); } catch (final IOException e) { handleIOException(e); } return this; }
/** * Invokes the delegate's <code>append(CharSequence, int, int)</code> method. * @param csq The character sequence to write * @param start The index of the first character to write * @param end The index of the first character to write (exclusive) * @return this writer * @throws IOException if an I/O error occurs * @since 2.0 */ @Override public Writer append(final CharSequence csq, final int start, final int end) throws IOException { try { beforeWrite(end - start); out.append(csq, start, end); afterWrite(end - start); } catch (final IOException e) { handleIOException(e); } return this; }
/** * Invokes the delegate's <code>append(CharSequence)</code> method. * @param csq The character sequence to write * @return this writer * @throws IOException if an I/O error occurs * @since 2.0 */ @Override public Writer append(final CharSequence csq) throws IOException { try { int len = 0; if (csq != null) { len = csq.length(); } beforeWrite(len); out.append(csq); afterWrite(len); } catch (final IOException e) { handleIOException(e); } return this; }
/** * Invokes the delegate's <code>write(int)</code> method. * @param idx the character to write * @throws IOException if an I/O error occurs */ @Override public void write(final int idx) throws IOException { try { beforeWrite(1); out.write(idx); afterWrite(1); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @throws IOException if an I/O error occurs */ @Override public void write(final String str) throws IOException { try { int len = 0; if (str != null) { len = str.length(); } beforeWrite(len); out.write(str); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(int)</code> method. * @param idx the character to write * @throws IOException if an I/O error occurs */ @Override public void write(int idx) throws IOException { try { beforeWrite(1); out.write(idx); afterWrite(1); } catch (IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(int)</code> method. * @param idx the character to write * @throws IOException if an I/O error occurs */ @Override public void write(int idx) throws IOException { try { beforeWrite(1); out.write(idx); afterWrite(1); } catch (IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(int)</code> method. * @param idx the character to write * @throws IOException if an I/O error occurs */ @Override public void write(final int idx) throws IOException { try { beforeWrite(1); out.write(idx); afterWrite(1); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(String str, int st, int len) throws IOException { try { beforeWrite(len); out.write(str, st, len); afterWrite(len); } catch (IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final String str, final int st, final int len) throws IOException { try { beforeWrite(len); out.write(str, st, len); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(char[])</code> method. * @param chr the characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final char[] chr) throws IOException { try { int len = 0; if (chr != null) { len = chr.length; } beforeWrite(len); out.write(chr); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(char[], int, int)</code> method. * @param chr the characters to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(final char[] chr, final int st, final int len) throws IOException { try { beforeWrite(len); out.write(chr, st, len); afterWrite(len); } catch (final IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>write(String)</code> method. * @param str the string to write * @param st The start offset * @param len The number of characters to write * @throws IOException if an I/O error occurs */ @Override public void write(String str, int st, int len) throws IOException { try { beforeWrite(len); out.write(str, st, len); afterWrite(len); } catch (IOException e) { handleIOException(e); } }
/** * Invokes the delegate's <code>append(char)</code> method. * @param c The character to write * @return this writer * @throws IOException if an I/O error occurs * @since 2.0 */ @Override public Writer append(char c) throws IOException { try { beforeWrite(1); out.append(c); afterWrite(1); } catch (IOException e) { handleIOException(e); } return this; }
/** * Invokes the delegate's <code>append(char)</code> method. * @param c The character to write * @return this writer * @throws IOException if an I/O error occurs * @since 2.0 */ @Override public Writer append(char c) throws IOException { try { beforeWrite(1); out.append(c); afterWrite(1); } catch (IOException e) { handleIOException(e); } return this; }