/** * Flushes the output buffer to the underlying byte stream, without flushing * the byte stream itself. This method is non-private only so that it may * be invoked by PrintStream. */ void flushBuffer() throws IOException { out().flush(); }
/** * Flushes the stream. * * @exception IOException If an I/O error occurs */ public void flush() throws IOException { out().flush(); }
/** * Flushes the output buffer to the underlying byte stream, without flushing * the byte stream itself. This method is non-private only so that it may * be invoked by PrintStream. */ void flushBuffer() throws IOException { out().flush(); }
/** * Flushes the stream. * * @exception IOException If an I/O error occurs */ public void flush() throws IOException { out().flush(); }
public void close() throws IOException { out().close(); }
public void close() throws IOException { out().close(); }
/** * Writes a single character. * * @exception IOException If an I/O error occurs */ public void write(int c) throws IOException { if (c <= 0x7F) { out().write(c); } else if (c <= 0x7FF) { out().write(0xC0 | (c >> 6)); out().write(0x80 | (c & 0x3F)); } else { out().write(0xE0 | (c >> 12)); out().write(0x80 | ((c >> 6) & 0x3F)); out().write(0x80 | (c & 0x3F)); } }
/** * Writes a single character. * * @exception IOException If an I/O error occurs */ public void write(int c) throws IOException { if (c <= 0x7F) { out().write(c); } else if (c <= 0x7FF) { out().write(0xC0 | (c >> 6)); out().write(0x80 | (c & 0x3F)); } else { out().write(0xE0 | (c >> 12)); out().write(0x80 | ((c >> 6) & 0x3F)); out().write(0x80 | (c & 0x3F)); } }