public class DatastoreRandomAccessFile
extends java.lang.Object
| Constructor and Description |
|---|
DatastoreRandomAccessFile(DatastoreFile file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
long |
getLength() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
boolean |
seek(long offset) |
void |
setPosition(long position) |
long |
skip(long offset) |
void |
write(byte[] buffer,
int offset,
int length) |
void |
write(int b) |
public DatastoreRandomAccessFile(DatastoreFile file)
public long getLength()
throws java.io.IOException
java.io.IOExceptionpublic long getFilePointer()
public boolean seek(long offset)
throws java.io.IOException
java.io.IOExceptionpublic long skip(long offset)
throws java.io.IOException
java.io.IOExceptionpublic void setPosition(long position)
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException