[Developement] Added "writeShortBE" method to interface RecordInterface and class VncCanvas.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3461 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/vncviewer/RecordInterface.java b/java/src/com/tightvnc/vncviewer/RecordInterface.java
index 6db71ce..7e1f0c9 100644
--- a/java/src/com/tightvnc/vncviewer/RecordInterface.java
+++ b/java/src/com/tightvnc/vncviewer/RecordInterface.java
@@ -21,6 +21,7 @@
   public void writeByte(byte b) throws IOException;
   public void writeByte(int i) throws IOException;
   public void writeIntBE(int v) throws IOException;
+  public void writeShortBE(int v) throws IOException;
   public void recordCompactLen(int len) throws IOException;
   public void recordCompressedData(byte[] data) throws IOException;
 }
diff --git a/java/src/com/tightvnc/vncviewer/VncCanvas.java b/java/src/com/tightvnc/vncviewer/VncCanvas.java
index 823f899..0954112 100644
--- a/java/src/com/tightvnc/vncviewer/VncCanvas.java
+++ b/java/src/com/tightvnc/vncviewer/VncCanvas.java
@@ -662,7 +662,6 @@
   //
 
   void handleCopyRect(int x, int y, int w, int h) throws IOException {
-
     rfb.readCopyRect();
     memGraphics.copyArea(rfb.copyRectSrcX, rfb.copyRectSrcY, w, h,
 			 x - rfb.copyRectSrcX, y - rfb.copyRectSrcY);
@@ -1309,6 +1308,10 @@
     rfb.rec.writeIntBE(v);
   }
 
+  public void writeShortBE(int v) throws IOException {
+    rfb.rec.writeShortBE(v);
+  }
+
   public void recordCompactLen(int len) throws IOException {
     rfb.recordCompactLen(len);
   }