[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
diff --git a/java/src/com/tightvnc/decoder/RawDecoder.java b/java/src/com/tightvnc/decoder/RawDecoder.java
index f244210..2095220 100644
--- a/java/src/com/tightvnc/decoder/RawDecoder.java
+++ b/java/src/com/tightvnc/decoder/RawDecoder.java
@@ -3,6 +3,7 @@
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;
@@ -62,6 +63,15 @@
}
//
+ // 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 @@
} // else
handleUpdatedPixels(x, y, w, h);
} // void
-
+
//
// Display newly updated area of pixels.
//
@@ -187,6 +197,7 @@
protected RfbInputStream rfbis = null;
protected Graphics graphics = null;
protected RecordInterface rec = null;
+ protected DataOutputStream dos = null;
//
// This data must be shared between decoders