comparison src/main/java/com/glavsoft/rfb/protocol/TreeTask.java @ 28:18fad65bc447

Create MyRfbProto.java MyRfbProto.java is a summary of the intersection of MyRfbClient and MyRfbProxy.
author one
date Sat, 01 Sep 2012 19:24:07 +0900
parents 85958cba5d15
children 57eb5575e6c4
comparison
equal deleted inserted replaced
27:85958cba5d15 28:18fad65bc447
1 package com.glavsoft.rfb.protocol; 1 package com.glavsoft.rfb.protocol;
2 2
3 import jp.ac.u_ryukyu.treevnc.server.*; 3 import jp.ac.u_ryukyu.treevnc.client.MyRfbProtoClient;
4 import jp.ac.u_ryukyu.treevnc.server.MyRfbProtoProxy;
4 5
5 import com.glavsoft.rfb.ClipboardController; 6 import com.glavsoft.rfb.ClipboardController;
6 import com.glavsoft.rfb.IRepaintController; 7 import com.glavsoft.rfb.IRepaintController;
7 import com.glavsoft.rfb.encoding.EncodingType; 8 import com.glavsoft.rfb.encoding.EncodingType;
8 import com.glavsoft.rfb.encoding.decoder.Decoder; 9 import com.glavsoft.rfb.encoding.decoder.Decoder;
14 final static String versionMsg_3_855 = "RFB 003.855\n"; 15 final static String versionMsg_3_855 = "RFB 003.855\n";
15 16
16 public TreeTask(Reader reader, IRepaintController repaintController, 17 public TreeTask(Reader reader, IRepaintController repaintController,
17 ClipboardController clipboardController, 18 ClipboardController clipboardController,
18 DecodersContainer decoders, ProtocolContext context, MyRfbProtoProxy rfb) { 19 DecodersContainer decoders, ProtocolContext context, MyRfbProtoProxy rfb) {
19 super(reader, repaintController, clipboardController, decoders,context, true); 20 super(reader, repaintController, clipboardController, decoders, context);
20 //super(reader, new NullRepaintController(), clipboardController, decoders,context, true); 21 //super(reader, new NullRepaintController(), clipboardController, decoders,context, true);
21 Decoder decoder = new ZRLEESender(rfb); 22 Decoder decoder = new ZRLEESender(rfb);
22 decoders.setDecoderByType(EncodingType.ZLIB, decoder); 23 decoders.setDecoderByType(EncodingType.ZLIB, decoder);
23 decoders.setDecoderByType(EncodingType.ZRLE, decoder); 24 decoders.setDecoderByType(EncodingType.ZRLE, decoder);
24 } 25 }
25 26
27 public TreeTask(Reader reader, IRepaintController repaintController,
28 ClipboardController clipboardController,
29 DecodersContainer decoders, ProtocolContext context, MyRfbProtoClient rfb) {
30 super(reader, repaintController, clipboardController, decoders, context);
31 Decoder decoder = new ZRLEESender(rfb);
32 }
26 /* public void framebufferUpdateMessage() throws CommonException { 33 /* public void framebufferUpdateMessage() throws CommonException {
27 * 34 *
28 * (non-Javadoc) 35 * (non-Javadoc)
29 * proxy 36 * proxy
30 * no Repaint 37 * no Repaint