Mercurial > hg > Members > you > BroadCastTreeVNC
diff src/treeVnc/DataInputStream1.java @ 5:970d5ac80256
add MyDataInputStream.java and DataInputStream1.java
author | one |
---|---|
date | Mon, 23 Apr 2012 21:10:23 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/treeVnc/DataInputStream1.java Mon Apr 23 21:10:23 2012 +0900 @@ -0,0 +1,65 @@ +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 + + } + +}