From 3e9ff9fbefe111925807d4a30531918a77fed789 Mon Sep 17 00:00:00 2001 From: enikey Date: Wed, 24 Dec 2008 03:30:29 +0000 Subject: [Developement] Added temporary method "setDataOutputStream" and member "dos" (interface DataOutputStream). This method will be removed or renamed after class RawDecoder will need RecordInterface to record session no more. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3446 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/src/com/tightvnc/decoder/RawDecoder.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'java/src') diff --git a/java/src/com/tightvnc/decoder/RawDecoder.java b/java/src/com/tightvnc/decoder/RawDecoder.java index f2442107..2095220a 100644 --- a/java/src/com/tightvnc/decoder/RawDecoder.java +++ b/java/src/com/tightvnc/decoder/RawDecoder.java @@ -3,6 +3,7 @@ package com.tightvnc.decoder; import com.tightvnc.vncviewer.RecordInterface; import com.tightvnc.vncviewer.RfbInputStream; import java.io.IOException; +import java.io.DataOutputStream; import java.awt.Graphics; import java.awt.Image; import java.awt.image.ColorModel; @@ -61,6 +62,15 @@ public class RawDecoder { rec = ri; } + // + // FIXME: Rename this method after we don't need RecordInterface + // in RawDecoder class to record session + // + + public void setDataOutputStream(DataOutputStream os) { + dos = os; + } + // // FIXME: This method may be useless in future, remove if so // @@ -110,7 +120,7 @@ public class RawDecoder { } // else handleUpdatedPixels(x, y, w, h); } // void - + // // Display newly updated area of pixels. // @@ -187,6 +197,7 @@ public class RawDecoder { protected RfbInputStream rfbis = null; protected Graphics graphics = null; protected RecordInterface rec = null; + protected DataOutputStream dos = null; // // This data must be shared between decoders -- cgit v1.2.3