public void println() throws IOException { newLine(); }
/** * Add a newline to the buffer. * * @throws IOException * Signals that an I/O exception has occurred. */ public void newLine() throws IOException { write(lineSeparator); }
/** * Write the character represented by the integer i to the buffer. * * @param i * the i * * @throws IOException * Signals that an I/O exception has occurred. */ public void write(int i) throws IOException { if (bufferSize == 0) { // write straight to the Writer contained in the parent JspWriter // not actually sure what good this does, but this case never happens anyways out.write(i); } else { // make sure there is enough room if (index >= bufferSize) { growBuffer(bufferSize + 1); } buffer[index++] = (char) i; } }
/** * Clear the contents of the buffer, unless it was flushed. * * @throws IOException * Signals that an I/O exception has occurred. */ public void clear() throws IOException { if (flushed) throw new IOException("Can't clear flushed buffer"); clearBuffer(); }
/** * Write the character represented by the integer i to the buffer. * * @param i * the i * * @throws IOException * Signals that an I/O exception has occurred. */ public void write(int i) throws IOException { if (bufferSize == 0) { // write straight to the Writer contained in the parent JspWriter // not actually sure what good this does, but this case never happens anyways out.write(i); } else { // make sure there is enough room if (index >= bufferSize) { growBuffer(bufferSize + 1); } buffer[index++] = (char) i; } }
/** * Clear the contents of the buffer, unless it was flushed. * * @throws IOException * Signals that an I/O exception has occurred. */ public void clear() throws IOException { if (flushed) throw new IOException("Can't clear flushed buffer"); clearBuffer(); }
/** * Add a newline to the buffer. * * @throws IOException * Signals that an I/O exception has occurred. */ public void newLine() throws IOException { write(lineSeparator); }
public void println() throws IOException { newLine(); }
public void print(char c) throws IOException { write((int) c); }
growBuffer(index + len);
public void print(char c) throws IOException { write((int) c); }
growBuffer(index + s.length());
public void print(char c[]) throws IOException { write(c, 0, c.length); }
growBuffer(index + s.length());