imported brians code
[nestedvm.git] / src / org / xwt / mips / util / SeekableData.java
diff --git a/src/org/xwt/mips/util/SeekableData.java b/src/org/xwt/mips/util/SeekableData.java
new file mode 100644 (file)
index 0000000..2603aba
--- /dev/null
@@ -0,0 +1,12 @@
+package org.xwt.mips.util;
+
+import java.io.IOException;
+
+public interface SeekableData { 
+    public int read(byte[] buf, int offset, int length) throws IOException;
+    public int write(byte[] buf, int offset, int length) throws IOException;
+    public int length() throws IOException;
+    public void seek(int pos) throws IOException;
+    public void close() throws IOException;
+    public int pos() throws IOException;
+}