Code example for Writer

Methods: append

0
	} 
 
	public void append(Object obj, Writer writer) throws IOException {
		Number num = (Number)obj;
		if(num instanceof Float || num instanceof Double || num instanceof BigDecimal){
			writer.append(formatter.format(num));
		}else{ 
			writer.append(String.valueOf(obj));
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE