diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tightvnc/vncviewer/RecordOutputStream.java | 15 |
1 files changed, 13 insertions, 2 deletions
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) { } |