Added clipboard support.

This commit is contained in:
Michael Jumper
2010-09-11 14:53:28 -07:00
parent 72ba6fcaa0
commit e1a6378607
7 changed files with 118 additions and 3 deletions

View File

@@ -113,7 +113,13 @@ public class GuacamoleClient extends Client {
}
public void setClipboard(String clipboard) throws GuacamoleException {
// STUB
try {
output.write("clipboard:" + Instruction.escape(clipboard) + ";");
output.flush();
}
catch (IOException e) {
throw new GuacamoleException(e);
}
}
public void disconnect() throws GuacamoleException {

View File

@@ -29,7 +29,7 @@ public abstract class Instruction {
@Override
public abstract String toString();
public String escape(String str) {
public static String escape(String str) {
StringBuffer sb = new StringBuffer();