1 16 package org.apache.commons.io.output; 17 18 import java.io.IOException ; 19 import java.io.FilterWriter ; 20 import java.io.Writer ; 21 22 31 public class ProxyWriter extends FilterWriter { 32 33 private Writer proxy; 34 35 39 public ProxyWriter(Writer proxy) { 40 super(proxy); 41 this.proxy = proxy; 42 } 43 44 45 public void write(int idx) throws IOException { 46 this.proxy.write(idx); 47 } 48 49 50 public void write(char[] chr) throws IOException { 51 this.proxy.write(chr); 52 } 53 54 55 public void write(char[] chr, int st, int end) throws IOException { 56 this.proxy.write(chr, st, end); 57 } 58 59 60 public void write(String str) throws IOException { 61 this.proxy.write(str); 62 } 63 64 65 public void write(String str, int st, int end) throws IOException { 66 this.proxy.write(str, st, end); 67 } 68 69 70 public void flush() throws IOException { 71 this.proxy.flush(); 72 } 73 74 75 public void close() throws IOException { 76 this.proxy.close(); 77 } 78 79 } 80 | Popular Tags |