1 29 package net.metanotion.io; 30 31 import java.io.IOException ; 32 33 public interface RandomAccessInterface { 34 public long getFilePointer() throws IOException ; 35 public long length() throws IOException ; 36 public int read() throws IOException ; 37 public int read(byte[] b) throws IOException ; 38 public int read(byte[] b, int off, int len) throws IOException ; 39 public void seek(long pos) throws IOException ; 40 public void setLength(long newLength) throws IOException ; 41 42 public void close() throws IOException ; 44 45 public boolean readBoolean() throws IOException ; 47 public byte readByte() throws IOException ; 48 public char readChar() throws IOException ; 49 public double readDouble() throws IOException ; 50 public float readFloat() throws IOException ; 51 public void readFully(byte[] b) throws IOException ; 52 public void readFully(byte[] b, int off, int len) throws IOException ; 53 public int readInt() throws IOException ; 54 public String readLine() throws IOException ; 55 public long readLong() throws IOException ; 56 public short readShort() throws IOException ; 57 public int readUnsignedByte() throws IOException ; 58 public int readUnsignedShort() throws IOException ; 59 public String readUTF() throws IOException ; 60 public int skipBytes(int n) throws IOException ; 61 62 public void write(int b) throws IOException ; 64 public void write(byte[] b) throws IOException ; 65 public void write(byte[] b, int off, int len) throws IOException ; 66 public void writeBoolean(boolean v) throws IOException ; 67 public void writeByte(int v) throws IOException ; 68 public void writeShort(int v) throws IOException ; 69 public void writeChar(int v) throws IOException ; 70 public void writeInt(int v) throws IOException ; 71 public void writeLong(long v) throws IOException ; 72 public void writeFloat(float v) throws IOException ; 73 public void writeDouble(double v) throws IOException ; 74 public void writeBytes(String s) throws IOException ; 75 public void writeChars(String s) throws IOException ; 76 public void writeUTF(String str) throws IOException ; 77 } 78 | Popular Tags |