aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/vncviewer/RfbProto.java
diff options
context:
space:
mode:
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 09:55:59 +0000
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 09:55:59 +0000
commitb48d64fceed13122ea6741033b08b26d7283b4f2 (patch)
tree3bc92199e7d797d7eab31d3f8113e84ffaf85c60 /java/src/com/tightvnc/vncviewer/RfbProto.java
parent9a4db7b41d1fed465a96e3c919d5ea65aa302539 (diff)
downloadtigervnc-b48d64fceed13122ea6741033b08b26d7283b4f2.tar.gz
tigervnc-b48d64fceed13122ea6741033b08b26d7283b4f2.zip
[Refactoring] Methods "recordCompactLen", "recordCompresedData" removed from RfbProto, RecordInterface, VncCanvas.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3470 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tightvnc/vncviewer/RfbProto.java')
-rw-r--r--java/src/com/tightvnc/vncviewer/RfbProto.java42
1 files changed, 0 insertions, 42 deletions
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;