blob: 0deea99ddcccf060d6bf6f17a125a5ef031a1fd9 [file] [log] [blame]
enikey329d2412008-12-19 04:07:05 +00001package com.tightvnc.vncviewer;
2
enikey0ef32b22008-12-19 04:16:34 +00003import java.io.IOException;
4
enikey329d2412008-12-19 04:07:05 +00005public class RfbInputStream {
enikey1e3e9bf2008-12-19 04:13:32 +00006 RfbInputStream(RfbProto rfbProto) {
7 rfb = rfbProto;
8 }
enikey329d2412008-12-19 04:07:05 +00009
enikey0ef32b22008-12-19 04:16:34 +000010 public void readFully(byte b[]) throws IOException {
11 readFully(b, 0, b.length);
12 }
13
14 public void readFully(byte b[], int off, int len) throws IOException {
15 rfb.readFully(b, off, len);
16 }
17
18 public int readU32() throws IOException {
19 return rfb.readU32();
20 }
21
22 public int readU8() throws IOException {
23 return rfb.readU8();
24 }
25
26 public int readCompactLen() throws IOException {
27 return rfb.readCompactLen();
28 }
29
enikey1e3e9bf2008-12-19 04:13:32 +000030 private RfbProto rfb = null;
31}