5
|
1 package treeVnc;
|
|
2
|
|
3 import java.io.BufferedInputStream;
|
|
4 import java.io.DataInputStream;
|
|
5 import java.io.IOException;
|
|
6
|
|
7
|
|
8 public class DataInputStream1 implements MyDataInputStream {
|
|
9 DataInputStream is;
|
|
10 public DataInputStream1(BufferedInputStream bufferedInputStream) {
|
|
11 is = new DataInputStream(bufferedInputStream);
|
|
12 }
|
|
13
|
|
14 @Override
|
|
15 public void readFully(byte[] b, int off, int len) throws IOException {
|
|
16 is.readFully(b, off, len);
|
|
17 }
|
|
18
|
|
19 @Override
|
|
20 public int available() throws IOException {
|
|
21 return is.available();
|
|
22 }
|
|
23
|
|
24 @Override
|
|
25 public int skipBytes(int n) throws IOException {
|
|
26 return is.skipBytes(n);
|
|
27 }
|
|
28
|
|
29 @Override
|
|
30 public int readUnsignedByte() throws IOException {
|
|
31 return is.readUnsignedByte();
|
|
32 }
|
|
33
|
|
34 @Override
|
|
35 public int readUnsignedShort() throws IOException {
|
|
36 return is.readUnsignedShort();
|
|
37 }
|
|
38
|
|
39 @Override
|
|
40 public int readInt() throws IOException {
|
|
41 return is.readInt();
|
|
42 }
|
|
43
|
|
44 @Override
|
|
45 public void read(byte[] headBuf) throws IOException {
|
|
46 is.read(headBuf);
|
|
47 }
|
|
48
|
|
49 @Override
|
|
50 public boolean markSupported() {
|
|
51 return is.markSupported();
|
|
52 }
|
|
53
|
|
54 @Override
|
|
55 public void mark(int i) {
|
|
56 is.mark(i);
|
|
57 }
|
|
58
|
|
59 @Override
|
|
60 public void reset() {
|
|
61 // TODO Auto-generated method stub
|
|
62
|
|
63 }
|
|
64
|
|
65 }
|