public class RandomAccessFileAdapter extends java.lang.Object implements RandomAccessStream
| Constructor and Description |
|---|
RandomAccessFileAdapter(java.io.File file)
Open a new or existing file for reading and writing as a RandomAccessStream.
|
RandomAccessFileAdapter(java.io.RandomAccessFile randomAccessFile)
Create a view of a RandomAccessFile as a RandomAccessStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
seek(int i) |
void |
setLength(int i) |
int |
tell() |
void |
write(int s0) |
public RandomAccessFileAdapter(java.io.RandomAccessFile randomAccessFile)
randomAccessFile - public RandomAccessFileAdapter(java.io.File file)
throws java.io.FileNotFoundException
file - java.io.FileNotFoundExceptionpublic void seek(int i)
seek in interface RandomAccessStreampublic int tell()
tell in interface RandomAccessStreampublic void close()
close in interface RandomAccessStreampublic void write(int s0)
write in interface RandomAccessStreampublic void setLength(int i)
setLength in interface RandomAccessStream