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