Code example for StringWriter

Methods: write

0
		stringWriter = new StringWriter();
	} 
	 
	@Override 
	protected void writeUTF(String arg0) throws IOException {
		stringWriter.write(arg0);
		stringWriter.write("\n");
	} 
	 
	@Override 
	protected void writeDouble(double arg0) throws IOException {
		stringWriter.write(Double.toString(arg0));
		stringWriter.write("\n");
	} 
	 
	@Override 
	protected void writeInt(int arg0) throws IOException {
		stringWriter.write(Integer.toString(arg0));
		stringWriter.write("\n");
	}