Code example for StringWriter

Methods: appendgetBuffer

0
		return writer;
	} 
 
	@Override 
	public Writer append(CharSequence csq, int start, int end) throws IOException {
		StringWriter stringWriter = new StringWriter();
		Writer writer = stringWriter.append(csq, start, end);
		append(stringWriter.getBuffer().toString());
 
		return writer;
	} 
 
	@Override 
	public void close() throws IOException { 
		// no-op 
	} 
 
	@Override 
	public void flush() throws IOException { 
		// no-op