diff options
author | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 04:36:37 +0000 |
---|---|---|
committer | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 04:36:37 +0000 |
commit | e93c7bc05599598c83130ff792a584973f03b220 (patch) | |
tree | 5d6c39b3eb7551907e097f88c4294ca8787ce098 /java | |
parent | 5276d7968c72a9d812f2735aa9a581e1d2bd7600 (diff) | |
download | tigervnc-e93c7bc05599598c83130ff792a584973f03b220.tar.gz tigervnc-e93c7bc05599598c83130ff792a584973f03b220.zip |
[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
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) { } |