public class RandomAccessFile implements DataOutput, DataInput { public final byte readByte() throws IOException { int ch = this.read(); if (ch < 0) throw new EOFException(); return (byte)(ch); }
public native int read() throws IOException;
public final void writeByte(int v) throws IOException { write(v); }
public native void write(int b) throws IOException; }