view src/treeVnc/DataInputStream1.java @ 6:01cdbc95142f default tip

update build.xml
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Mon, 30 Apr 2012 16:04:44 +0900
parents 970d5ac80256
children
line wrap: on
line source

package treeVnc;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;


public class DataInputStream1 implements MyDataInputStream {
	DataInputStream is;
	public DataInputStream1(BufferedInputStream bufferedInputStream) {
		is = new DataInputStream(bufferedInputStream);
	}

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

	@Override
	public int available() throws IOException {
		return is.available();
	}

	@Override
	public int skipBytes(int n) throws IOException {
		return is.skipBytes(n);
	}

	@Override
	public int readUnsignedByte() throws IOException {
		return is.readUnsignedByte();
	}

	@Override
	public int readUnsignedShort() throws IOException {
		return is.readUnsignedShort();
	}

	@Override
	public int readInt() throws IOException {
		return is.readInt();
	}

	@Override
	public void read(byte[] headBuf) throws IOException {
		is.read(headBuf);		
	}

	@Override
	public boolean markSupported() {
		return is.markSupported();
	}

	@Override
	public void mark(int i) {
		is.mark(i);
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
		
	}

}