package goryachev.common.io;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;


public class RandomAccessFileOutputStreamWrapper
	extends OutputStream
{
	private final RandomAccessFile f;


	public RandomAccessFileOutputStreamWrapper(RandomAccessFile f)
	{
		this.f = f;
	}


	public void write(int b) throws IOException
	{
		f.write(b);
	}


	public void write(byte b[]) throws IOException
	{
		f.write(b, 0, b.length);
	}


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


	public void flush() throws IOException
	{
	}


	public void close() throws IOException
	{
		f.close();
	}
}
