List of usage examples for java.io FilterWriter write
public void write(int c) throws IOException
From source file:Main.java
public static void main(String[] args) throws Exception { Writer w = new StringWriter(6); FilterWriter fw = new FilterWriter(w) { };/*from www . jav a2s .com*/ fw.write(65); String s = w.toString(); System.out.println(s); }
From source file:Main.java
public static void main(String[] args) throws Exception { Writer w = new StringWriter(6); FilterWriter fw = new FilterWriter(w) { };/*from w w w.ja v a2 s. c o m*/ fw.write(65); fw.flush(); String s = w.toString(); System.out.print(s); }
From source file:Main.java
public static void main(String[] args) throws Exception { Writer w = new StringWriter(6); FilterWriter fw = new FilterWriter(w) { };/*from w w w . j av a2s . c om*/ fw.write(65); fw.write(66); fw.write(67); String s = w.toString(); System.out.print(s); }