From e93c7bc05599598c83130ff792a584973f03b220 Mon Sep 17 00:00:00 2001 From: enikey Date: Wed, 24 Dec 2008 04:36:37 +0000 Subject: [Developement] Added body to "writeByte" and "writeInt" methods to RecordOutputStream class. 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 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'java') diff --git a/java/src/com/tightvnc/vncviewer/RecordOutputStream.java b/java/src/com/tightvnc/vncviewer/RecordOutputStream.java index a19384e5..31ab2620 100644 --- a/java/src/com/tightvnc/vncviewer/RecordOutputStream.java +++ b/java/src/com/tightvnc/vncviewer/RecordOutputStream.java @@ -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) { } -- cgit v1.2.3