package de.vdheide.io;

import java.io.IOException;

/**
 * An interface to enable usage of both RandomAccessByteArray
 * and RandomAccessFile (by RandomAccessFileWrapper).
 *
 * @author Jens Vonderheide <jvonderheide@redlink.de>
 */
public interface RandomAccess {

	public int read() throws IOException;
	public int read(byte b[], int off, int len) throws IOException;
	public int readUnsignedByte() throws IOException;
	public void seek(long n) throws IOException;
	public long getPointer() throws IOException;
	public void close() throws IOException;
	public long length() throws IOException;
	
}
