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.IOException
public long getFilePointer()
public boolean seek(long offset) throws java.io.IOException
java.io.IOException
public long skip(long offset) throws java.io.IOException
java.io.IOException
public void setPosition(long position) throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException