summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-19 12:07:24 +0000
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-19 12:07:24 +0000
commit6f5a94b8cec1c91e012165e0b77b084fd02b3e9a (patch)
treeee2e0d36ad2f98e28d7aed54e6c8d64bffa301e8 /java
parent17ac181351848fa1047a2c95619ac2792ccfbc41 (diff)
downloadtigervnc-6f5a94b8cec1c91e012165e0b77b084fd02b3e9a.tar.gz
tigervnc-6f5a94b8cec1c91e012165e0b77b084fd02b3e9a.zip
[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
Diffstat (limited to 'java')
-rw-r--r--java/src/com/tightvnc/vncviewer/RecordOutputStream.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/java/src/com/tightvnc/vncviewer/RecordOutputStream.java b/java/src/com/tightvnc/vncviewer/RecordOutputStream.java
new file mode 100644
index 00000000..188695cc
--- /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;
+}