summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/examples/gui/StrokeGUI.java')
-rw-r--r--src/com/isode/stroke/examples/gui/StrokeGUI.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/isode/stroke/examples/gui/StrokeGUI.java b/src/com/isode/stroke/examples/gui/StrokeGUI.java
index 282fde6..6fc07de 100644
--- a/src/com/isode/stroke/examples/gui/StrokeGUI.java
+++ b/src/com/isode/stroke/examples/gui/StrokeGUI.java
@@ -11,6 +11,7 @@
package com.isode.stroke.examples.gui;
+import com.isode.stroke.base.SafeByteArray;
import com.isode.stroke.client.ClientError;
import com.isode.stroke.client.ClientOptions;
import com.isode.stroke.client.CoreClient;
@@ -179,15 +180,15 @@ public class StrokeGUI extends javax.swing.JFrame {
thisObject.handleClientError(p1);
}
});
- client_.onDataRead.connect(new Slot1<String>() {
+ client_.onDataRead.connect(new Slot1<SafeByteArray>() {
- public void call(String p1) {
+ public void call(SafeByteArray p1) {
xmlText_.append(">>> " + p1 + "\n");
}
});
- client_.onDataWritten.connect(new Slot1<String>() {
+ client_.onDataWritten.connect(new Slot1<SafeByteArray>() {
- public void call(String p1) {
+ public void call(SafeByteArray p1) {
xmlText_.append("<<< " + p1 + "\n");
}
});