Merge branch 'Jalview-JS/develop' into develop
[jalview.git] / unused / javajs / api / GenericBinaryDocumentReader.java
diff --git a/unused/javajs/api/GenericBinaryDocumentReader.java b/unused/javajs/api/GenericBinaryDocumentReader.java
new file mode 100644 (file)
index 0000000..aea6f63
--- /dev/null
@@ -0,0 +1,25 @@
+package javajs.api;
+
+public interface GenericBinaryDocumentReader {
+
+  byte readByte() throws Exception;
+
+  byte[] readBytes(int n) throws Exception;
+
+  int readUInt8() throws Exception;
+
+  int readInt() throws Exception;
+
+  short readShort() throws Exception;
+
+  int readUnsignedShort() throws Exception;
+
+  long readLong() throws Exception;
+
+  float readFloat() throws Exception;
+
+  double readDouble() throws Exception;
+
+  String readString(int i) throws Exception;
+
+}