]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] Added base methods headers to interface RecordInterface.
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 04:32:14 +0000 (04:32 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Fri, 19 Dec 2008 04:32:14 +0000 (04:32 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3409 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/RecordInterface.java

index bdef88911ea0b5b8ea09f236f52e6312f4007b2f..6db71ce429d2046a373746026a7f63082fe919fd 100644 (file)
@@ -1,9 +1,26 @@
 package com.tightvnc.vncviewer;
 
+import java.io.IOException;
+
 //
 // This interface will be used for recording sessions
 // by decoders classes in com.tighvnc.decoder package.
 //
 public interface RecordInterface {
+  //
+  // Recording state methods
+  //
+  public boolean isRecordFromBeginning();
+  public boolean canWrite();
 
+  //
+  // Write data methods
+  //
+  public void write(byte b[]) throws IOException;
+  public void write(byte b[], int off, int len) throws IOException;
+  public void writeByte(byte b) throws IOException;
+  public void writeByte(int i) throws IOException;
+  public void writeIntBE(int v) throws IOException;
+  public void recordCompactLen(int len) throws IOException;
+  public void recordCompressedData(byte[] data) throws IOException;
 }