/** * Writes single byte. */ @Override public void write(int b) { buffer.append((char) b); }
/** * @see java.io.Writer#write(char[], int, int) */ @Override public void write(char[] b, int off, int len) { buffer.append(b, off, len); }
/** * Appends <code>char</code> array to buffer. */ public FastCharBuffer append(char[] array) { return append(array, 0, array.length); }
/** * Appends character sequence to buffer. */ public FastCharBuffer append(CharSequence csq, int start, int end) { for (int i = start; i < end; i++) { append(csq.charAt(i)); } return this; }
/** * Appends character sequence to buffer. */ public FastCharBuffer append(CharSequence csq) { append(csq, 0, csq.length()); return this; }
/** * Appends <code>char</code> array to buffer. */ public FastCharBuffer append(char[] array) { return append(array, 0, array.length); }
/** * Appends character sequence to buffer. */ public FastCharBuffer append(CharSequence csq) { append(csq, 0, csq.length()); return this; }
/** * Appends character sequence to buffer. */ public FastCharBuffer append(CharSequence csq, int start, int end) { for (int i = start; i < end; i++) { append(csq.charAt(i)); } return this; }