public class RandomAccessFile extends Object
Constructor and Description |
---|
RandomAccessFile(File name,
String permissions) |
public RandomAccessFile(File name, String permissions) throws FileNotFoundException
FileNotFoundException
public void seek(long posn) throws IOException
IOException
public long length() throws IOException
IOException
public void setDataMap()
public void writeByte(int data) throws IOException
IOException
public void write(byte[] data, int start, int len) throws IOException
IOException
public void setLength(long len) throws IOException
IOException
public int read(byte[] data, int start, int len) throws IOException
IOException
public byte readByte() throws IOException
IOException
public void close() throws IOException
IOException