diff options
Diffstat (limited to 'java/src/com')
-rw-r--r-- | java/src/com/tightvnc/vncviewer/RecordInterface.java | 2 | ||||
-rw-r--r-- | java/src/com/tightvnc/vncviewer/RfbProto.java | 42 | ||||
-rw-r--r-- | java/src/com/tightvnc/vncviewer/VncCanvas.java | 8 |
3 files changed, 0 insertions, 52 deletions
diff --git a/java/src/com/tightvnc/vncviewer/RecordInterface.java b/java/src/com/tightvnc/vncviewer/RecordInterface.java index 7e1f0c9e..880d6144 100644 --- a/java/src/com/tightvnc/vncviewer/RecordInterface.java +++ b/java/src/com/tightvnc/vncviewer/RecordInterface.java @@ -22,6 +22,4 @@ public interface RecordInterface { public void writeByte(int i) throws IOException; public void writeIntBE(int v) throws IOException; public void writeShortBE(int v) throws IOException; - public void recordCompactLen(int len) throws IOException; - public void recordCompressedData(byte[] data) throws IOException; } diff --git a/java/src/com/tightvnc/vncviewer/RfbProto.java b/java/src/com/tightvnc/vncviewer/RfbProto.java index 51532531..156b41a5 100644 --- a/java/src/com/tightvnc/vncviewer/RfbProto.java +++ b/java/src/com/tightvnc/vncviewer/RfbProto.java @@ -1406,48 +1406,6 @@ class RfbProto { System.out.println("Video rectangle selection message sent"); } - - // - // Compress and write the data into the recorded session file. This - // method assumes the recording is on (rec != null). - // - - void recordCompressedData(byte[] data, int off, int len) throws IOException { - Deflater deflater = new Deflater(); - deflater.setInput(data, off, len); - int bufSize = len + len / 100 + 12; - byte[] buf = new byte[bufSize]; - deflater.finish(); - int compressedSize = deflater.deflate(buf); - recordCompactLen(compressedSize); - if (rec != null) rec.write(buf, 0, compressedSize); - } - - void recordCompressedData(byte[] data) throws IOException { - recordCompressedData(data, 0, data.length); - } - - // - // Write an integer in compact representation (1..3 bytes) into the - // recorded session file. This method assumes the recording is on - // (rec != null). - // - - void recordCompactLen(int len) throws IOException { - byte[] buf = new byte[3]; - int bytes = 0; - buf[bytes++] = (byte)(len & 0x7F); - if (len > 0x7F) { - buf[bytes-1] |= 0x80; - buf[bytes++] = (byte)(len >> 7 & 0x7F); - if (len > 0x3FFF) { - buf[bytes-1] |= 0x80; - buf[bytes++] = (byte)(len >> 14 & 0xFF); - } - } - if (rec != null) rec.write(buf, 0, bytes); - } - public void startTiming() { timing = true; diff --git a/java/src/com/tightvnc/vncviewer/VncCanvas.java b/java/src/com/tightvnc/vncviewer/VncCanvas.java index 35fa7df7..0041959b 100644 --- a/java/src/com/tightvnc/vncviewer/VncCanvas.java +++ b/java/src/com/tightvnc/vncviewer/VncCanvas.java @@ -1313,12 +1313,4 @@ class VncCanvas extends Canvas public void writeShortBE(int v) throws IOException { rfb.rec.writeShortBE(v); } - - public void recordCompactLen(int len) throws IOException { - //rfb.recordCompactLen(len); - } - - public void recordCompressedData(byte[] data) throws IOException { - //rfb.recordCompressedData(data); - } } |