]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] Added readFully, readU32, readU8, readCompactLen methods to RfbInputSt...
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 04:16:34 +0000 (04:16 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 04:16:34 +0000 (04:16 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3406 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/RfbInputStream.java

index bb130158ce936a78a952e1eb8bd9a8b56f7d0f81..0deea99ddcccf060d6bf6f17a125a5ef031a1fd9 100644 (file)
@@ -1,9 +1,31 @@
 package com.tightvnc.vncviewer;
 
+import java.io.IOException;
+
 public class RfbInputStream {
   RfbInputStream(RfbProto rfbProto) {
     rfb = rfbProto;
   }
 
+  public void readFully(byte b[]) throws IOException {
+    readFully(b, 0, b.length);
+  }
+
+  public void readFully(byte b[], int off, int len) throws IOException {
+    rfb.readFully(b, off, len);
+  }
+
+  public int readU32() throws IOException  {
+    return rfb.readU32();
+  }
+
+  public int readU8() throws IOException  {
+    return rfb.readU8();
+  }
+
+  public int readCompactLen() throws IOException {
+    return rfb.readCompactLen();
+  }
+
   private RfbProto rfb = null;
 }
\ No newline at end of file