1 7 8 package java.io; 9 10 11 23 24 public abstract class FilterWriter extends Writer { 25 26 29 protected Writer out; 30 31 37 protected FilterWriter(Writer out) { 38 super(out); 39 this.out = out; 40 } 41 42 47 public void write(int c) throws IOException { 48 out.write(c); 49 } 50 51 60 public void write(char cbuf[], int off, int len) throws IOException { 61 out.write(cbuf, off, len); 62 } 63 64 73 public void write(String str, int off, int len) throws IOException { 74 out.write(str, off, len); 75 } 76 77 82 public void flush() throws IOException { 83 out.flush(); 84 } 85 86 91 public void close() throws IOException { 92 out.close(); 93 } 94 95 } 96 | Popular Tags |