@Override public CharArrayBufferWriter append(CharSequence csq) throws IOException { super.append(csq); return this; }
@Override public CharArrayBufferWriter append(char c) throws IOException { super.append(c); return this; }
@Override public LoggingWriter append(char c) throws IOException { log.write("writer["); log.write(Long.toString(id)); log.write("].append("); log(c); log.write(");\n"); log.flush(); wrapped.append(c); return this; }
@Override public LoggingWriter append(CharSequence csq) throws IOException { log.write("writer["); log.write(Long.toString(id)); log.write("].append("); log(csq==null ? null : csq.toString()); log.write(");\n"); log.flush(); wrapped.append(csq); return this; }
@Override public LoggingWriter append(CharSequence csq, int start, int end) throws IOException { log.write("writer["); log.write(Long.toString(id)); log.write("].append("); log(csq==null ? null : csq.toString()); log.write(", "); log.write(Integer.toString(start)); log.write(", "); log.write(Integer.toString(end)); log.write(");\n"); log.flush(); wrapped.append(csq, start, end); return this; }
@Override public AutoTempFileWriter append(CharSequence csq) throws IOException { if(isInitialBuffer) { switchIfNeeded(buffer.getLength() + csq.length()); } buffer.append(csq); return this; }
@Override public AutoTempFileWriter append(char c) throws IOException { if(isInitialBuffer) { switchIfNeeded(buffer.getLength() + 1); } buffer.append(c); return this; }
@Override public AutoTempFileWriter append(CharSequence csq, int start, int end) throws IOException { if(isInitialBuffer) { switchIfNeeded(buffer.getLength() + (end-start)); } buffer.append(csq, start, end); return this; }