public void write(char ac[], int i, int j) throws IOException { if (writer != null) { writer.write(ac, i, j); } else { ensureOpen(); buffer.buffer(ac, i, j); } }
public void write(int i) throws IOException { if (writer != null) { writer.write(i); } else { ensureOpen(); buffer.buffer((char) i); } }
public void write(String s, int i, int j) throws IOException { if (writer != null) { writer.write(s, i, j); } else { ensureOpen(); buffer.buffer(s, i, j); } }
public void write(int i) throws IOException { if (writer != null) { writer.write(i); } else { ensureOpen(); buffer.buffer((char) i); } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
public void write(String s, int i, int j) throws IOException { if (writer != null) { writer.write(s, i, j); } else { ensureOpen(); buffer.buffer(s, i, j); } }
public void write(char ac[], int i, int j) throws IOException { if (writer != null) { writer.write(ac, i, j); } else { ensureOpen(); buffer.buffer(ac, i, j); } }
/** * Write a single character. */ @Override public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ @Override public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. */ public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a portion of a String. * * @param s String to be written * @param off Offset from which to start reading characters * @param len Number of characters to be written */ public void write(String s, int off, int len) throws IOException { if (writer != null) { writer.write(s, off, len); } else { ensureOpen(); if (len >= bufferSize - nextChar) reAllocBuff(len); s.getChars(off, off + len, cb, nextChar); nextChar += len; } }
/** * Write a single character. */ @Override public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a portion of a String. * * @param s String to be written * @param off Offset from which to start reading characters * @param len Number of characters to be written */ @Override public void write(String s, int off, int len) throws IOException { if (writer != null) { writer.write(s, off, len); } else { ensureOpen(); if (len >= bufferSize - nextChar) reAllocBuff(len); s.getChars(off, off + len, cb, nextChar); nextChar += len; } }
/** * Write a single character. * @param c The char to write * @throws IOException Error writing to wrapped writer */ @Override public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }
/** * Write a single character. * @param c The char to write * @throws IOException Error writing to wrapped writer */ @Override public void write(int c) throws IOException { if (writer != null) { writer.write(c); } else { ensureOpen(); if (nextChar >= bufferSize) { reAllocBuff (1); } cb[nextChar++] = (char) c; } }