AutoCloseable, CloseableRAIFilepublic interface RandomAccessInterface extends Closeable
| Modifier and Type | Method | 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
IOExceptionlong length()
throws IOException
IOExceptionint read() throws IOException
IOExceptionint read(byte[] b) throws IOException
IOExceptionint read(byte[] b,
int off,
int len)
throws IOException
IOExceptionvoid seek(long pos) throws IOException
IOExceptionvoid setLength(long newLength)
throws IOException
IOExceptionboolean canWrite()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionboolean readBoolean()
throws IOException
IOExceptionbyte readByte()
throws IOException
IOExceptionchar readChar()
throws IOException
IOExceptiondouble readDouble()
throws IOException
IOExceptionfloat readFloat()
throws IOException
IOExceptionvoid readFully(byte[] b)
throws IOException
IOExceptionvoid readFully(byte[] b,
int off,
int len)
throws IOException
IOExceptionint readInt()
throws IOException
IOExceptionString readLine() throws IOException
IOExceptionlong readLong()
throws IOException
IOExceptionshort readShort()
throws IOException
IOExceptionint readUnsignedByte()
throws IOException
IOExceptionint readUnsignedShort()
throws IOException
IOExceptionint readUnsignedInt()
throws IOException
IOExceptionString readUTF() throws IOException
IOExceptionint skipBytes(int n)
throws IOException
IOExceptionvoid write(int b)
throws IOException
IOExceptionvoid write(byte[] b)
throws IOException
IOExceptionvoid write(byte[] b,
int off,
int len)
throws IOException
IOExceptionvoid writeBoolean(boolean v)
throws IOException
IOExceptionvoid writeByte(int v)
throws IOException
IOExceptionvoid writeShort(int v)
throws IOException
IOExceptionvoid writeChar(int v)
throws IOException
IOExceptionvoid writeInt(int v)
throws IOException
IOExceptionvoid writeLong(long v)
throws IOException
IOExceptionvoid writeFloat(float v)
throws IOException
IOExceptionvoid writeDouble(double v)
throws IOException
IOExceptionvoid writeBytes(String s) throws IOException
IOExceptionvoid writeChars(String s) throws IOException
IOExceptionvoid writeUTF(String str) throws IOException
IOException