1 package org.xwt.mips.util;
3 import java.io.IOException;
5 public interface SeekableData {
6 public int read(byte[] buf, int offset, int length) throws IOException;
7 public int write(byte[] buf, int offset, int length) throws IOException;
8 public int length() throws IOException;
9 public void seek(int pos) throws IOException;
10 public void close() throws IOException;
11 public int pos() throws IOException;