001 package org.shiftone.jrat.util.io.proxy;
002
003
004 import java.io.IOException;
005 import java.io.OutputStream;
006
007
008 public abstract class ProxyOutputStream extends OutputStream {
009
010 protected abstract OutputStream getTarget() throws IOException;
011
012
013 public void write(byte b[]) throws IOException {
014 getTarget().write(b);
015 }
016
017
018 public void write(byte b[], int off, int len) throws IOException {
019 getTarget().write(b, off, len);
020 }
021
022
023 public void flush() throws IOException {
024 getTarget().flush();
025 }
026
027
028 public void close() throws IOException {
029 getTarget().close();
030 }
031
032
033 public void write(int b) throws IOException {
034 getTarget().write(b);
035 }
036 }