public interface RandomAccessInterface extends Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite()
I2P is the file writable?
Only valid if the File constructor was used, not the RAF constructor
|
void |
close() |
long |
getFilePointer() |
long |
length() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedInt() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
seek(long pos) |
void |
setLength(long newLength) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String str) |
long getFilePointer() throws IOException
IOException
long length() throws IOException
IOException
int read() throws IOException
IOException
int read(byte[] b) throws IOException
IOException
int read(byte[] b, int off, int len) throws IOException
IOException
void seek(long pos) throws IOException
IOException
void setLength(long newLength) throws IOException
IOException
boolean canWrite()
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
boolean readBoolean() throws IOException
IOException
byte readByte() throws IOException
IOException
char readChar() throws IOException
IOException
double readDouble() throws IOException
IOException
float readFloat() throws IOException
IOException
void readFully(byte[] b) throws IOException
IOException
void readFully(byte[] b, int off, int len) throws IOException
IOException
int readInt() throws IOException
IOException
String readLine() throws IOException
IOException
long readLong() throws IOException
IOException
short readShort() throws IOException
IOException
int readUnsignedByte() throws IOException
IOException
int readUnsignedShort() throws IOException
IOException
int readUnsignedInt() throws IOException
IOException
String readUTF() throws IOException
IOException
int skipBytes(int n) throws IOException
IOException
void write(int b) throws IOException
IOException
void write(byte[] b) throws IOException
IOException
void write(byte[] b, int off, int len) throws IOException
IOException
void writeBoolean(boolean v) throws IOException
IOException
void writeByte(int v) throws IOException
IOException
void writeShort(int v) throws IOException
IOException
void writeChar(int v) throws IOException
IOException
void writeInt(int v) throws IOException
IOException
void writeLong(long v) throws IOException
IOException
void writeFloat(float v) throws IOException
IOException
void writeDouble(double v) throws IOException
IOException
void writeBytes(String s) throws IOException
IOException
void writeChars(String s) throws IOException
IOException
void writeUTF(String str) throws IOException
IOException