]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] Added body to "writeByte" and "writeInt" methods to RecordOutputStream...
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 04:36:37 +0000 (04:36 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 04:36:37 +0000 (04:36 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3451 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/RecordOutputStream.java

index a19384e50b2d4b8e9b07cda0266381b646b9e78a..31ab26205cda6d78944c4ca2276e7ac914fd4f67 100644 (file)
@@ -25,13 +25,24 @@ public class RecordOutputStream implements DataOutput {
   }
 
   public void writeBoolean(boolean v) { }
-  public void writeByte(int v) { }
+
+  public void writeByte(int v) throws IOException {
+    if (recordInterface.canWrite()) {
+      recordInterface.writeByte((byte)v);
+    }
+  }
+
   public void writeBytes(String s) { }
   public void writeChar(int v) { }
   public void writeChars(String s) { }
   public void writeDouble(double v) { }
   public void writeFloat(float v) { }
-  public void writeInt(int v) { }
+
+  public void writeInt(int v) throws IOException {
+    if (recordInterface.canWrite())
+      recordInterface.writeIntBE(v);
+  }
+
   public void writeLong(long v) { }
   public void writeShort(int v) { }
   public void writeUTF(String str) { }