Code example for StringWriter

Methods: getBufferwrite

0
		// no-op 
	} 
 
	@Override 
	public void write(int c) throws IOException {
		StringWriter stringWriter = new StringWriter();
		stringWriter.write(c);
		append(stringWriter.getBuffer().toString());
	} 
 
	@Override 
	public void write(char[] cbuf) throws IOException {
		StringWriter stringWriter = new StringWriter();
		stringWriter.write(cbuf);
		append(stringWriter.getBuffer().toString());
	} 
 
	@Override 
	public void write(String str) throws IOException {
		append(str);