001 package org.shiftone.jrat.util.io.proxy;
002
003
004 import java.io.IOException;
005 import java.io.Writer;
006
007
008 public abstract class ProxyWriter extends Writer {
009
010 protected abstract Writer getTarget() throws IOException;
011
012
013 public void write(int c) throws IOException {
014 getTarget().write(c);
015 }
016
017
018 public void write(char cbuf[]) throws IOException {
019 getTarget().write(cbuf);
020 }
021
022
023 public void write(String str) throws IOException {
024 getTarget().write(str);
025 }
026
027
028 public void write(String str, int off, int len) throws IOException {
029 getTarget().write(str, off, len);
030 }
031
032
033 public void write(char cbuf[], int off, int len) throws IOException {
034 getTarget().write(cbuf, off, len);
035 }
036
037
038 public void flush() throws IOException {
039 getTarget().flush();
040 }
041
042
043 public void close() throws IOException {
044 getTarget().close();
045 }
046 }