package fileape;

import java.io.IOException;
import java.io.OutputStream;

/**
 * 
 * 
 */
public class ProxyOutputStream extends OutputStream{

	final OutputStream out;

	public ProxyOutputStream(OutputStream out) {
		super();
		this.out = out;
	}

	@Override
	public void write(int b) throws IOException {
		out.write(b);
	}

	@Override
	public void write(byte[] b) throws IOException {
		out.write(b);
	}

	@Override
	public void write(byte[] b, int off, int len) throws IOException {
		out.write(b, off, len);
	}

	@Override
	public void flush() throws IOException {
		out.flush();
	}

	@Override
	public void close() throws IOException {
		out.close();
	}
	
	
}

@@ -26,27 +26,32 @@
 java.io.
-IOException
+DataOutputStream
 ;%0Aimport
@@ -129,16 +129,20 @@
 extends 
+Data
 OutputSt
@@ -145,16 +145,17 @@
 utStream
+ 
 %7B%0A%0A%09fina
@@ -229,16 +229,19 @@
 %09%09super(
+out
 );%0A%09%09thi
@@ -261,421 +261,6 @@
 %09%7D%0A%0A
-%09@Override%0A%09public void write(int b) throws IOException %7B%0A%09%09out.write(b);%0A%09%7D%0A%0A%09@Override%0A%09public void write(byte%5B%5D b) throws IOException %7B%0A%09%09out.write(b);%0A%09%7D%0A%0A%09@Override%0A%09public void write(byte%5B%5D b, int off, int len) throws IOException %7B%0A%09%09out.write(b, off, len);%0A%09%7D%0A%0A%09@Override%0A%09public void flush() throws IOException %7B%0A%09%09out.flush();%0A%09%7D%0A%0A%09@Override%0A%09public void close() throws IOException %7B%0A%09%09out.close();%0A%09%7D%0A%09%0A%09%0A
 %7D%0A

use DataOutputStream