[Layout] Added class RecordOutputStream (implements DataOutputStream). Class will be used for recoding sessions. Recording will work still from decoders classes.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3442 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/vncviewer/RecordOutputStream.java b/java/src/com/tightvnc/vncviewer/RecordOutputStream.java
new file mode 100644
index 0000000..188695c
--- /dev/null
+++ b/java/src/com/tightvnc/vncviewer/RecordOutputStream.java
@@ -0,0 +1,37 @@
+package com.tightvnc.vncviewer;
+
+import java.io.DataOutput;
+import java.io.IOException;
+
+public class RecordOutputStream implements DataOutput {
+
+  public RecordOutputStream(RecordInterface ri) {
+    recordInterface = ri;
+  }
+
+  public void write(byte[] b) throws IOException {
+    recordInterface.write(b);
+  }
+
+  public void write(byte[] b, int off, int len) throws IOException {
+    recordInterface.write(b, off, len);
+  }
+
+  public void write(int b) throws IOException {
+    recordInterface.writeIntBE(b);
+  }
+
+  public void writeBoolean(boolean v) { }
+  public void writeByte(int 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 writeLong(long v) { }
+  public void writeShort(int v) { }
+  public void writeUTF(String str) { }
+  
+  private RecordInterface recordInterface = null;
+}