From 6f5a94b8cec1c91e012165e0b77b084fd02b3e9a Mon Sep 17 00:00:00 2001 From: enikey Date: Fri, 19 Dec 2008 12:07:24 +0000 Subject: [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 --- .../com/tightvnc/vncviewer/RecordOutputStream.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 java/src/com/tightvnc/vncviewer/RecordOutputStream.java (limited to 'java') 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; +} -- cgit v1.2.3