< prev index next >

src/java.base/share/classes/java/io/Writer.java

Print this page

        

*** 207,217 **** * Array of characters to be written * * @throws IOException * If an I/O error occurs */ ! public void write(char cbuf[]) throws IOException { write(cbuf, 0, cbuf.length); } /** * Writes a portion of an array of characters. --- 207,217 ---- * Array of characters to be written * * @throws IOException * If an I/O error occurs */ ! public void write(char[] cbuf) throws IOException { write(cbuf, 0, cbuf.length); } /** * Writes a portion of an array of characters.
*** 232,242 **** * of the given array * * @throws IOException * If an I/O error occurs */ ! public abstract void write(char cbuf[], int off, int len) throws IOException; /** * Writes a string. * * @param str --- 232,242 ---- * of the given array * * @throws IOException * If an I/O error occurs */ ! public abstract void write(char[] cbuf, int off, int len) throws IOException; /** * Writes a string. * * @param str
*** 275,285 **** * @throws IOException * If an I/O error occurs */ public void write(String str, int off, int len) throws IOException { synchronized (lock) { ! char cbuf[]; if (len <= WRITE_BUFFER_SIZE) { if (writeBuffer == null) { writeBuffer = new char[WRITE_BUFFER_SIZE]; } cbuf = writeBuffer; --- 275,285 ---- * @throws IOException * If an I/O error occurs */ public void write(String str, int off, int len) throws IOException { synchronized (lock) { ! char[] cbuf; if (len <= WRITE_BUFFER_SIZE) { if (writeBuffer == null) { writeBuffer = new char[WRITE_BUFFER_SIZE]; } cbuf = writeBuffer;
< prev index next >