public interface RandomAccessInterface extends Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean | canWrite()Is the file writable? (I2P)
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()Read a 4-byte big-endian unsigned int. |
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) |
boolean canWrite()
void close()
throws IOExceptionclose in interface AutoCloseableclose in interface CloseableIOExceptionRandomAccessFile.close()long getFilePointer()
throws IOExceptionIOExceptionlong length()
throws IOExceptionIOExceptionint read() throws IOException
IOExceptionRandomAccessFile.read()int read(byte[] b) throws IOException
IOExceptionRandomAccessFile.read(byte[])int read(byte[] b,
int off,
int len)
throws IOExceptionIOExceptionRandomAccessFile.read(byte[],int,int)boolean readBoolean()
throws IOExceptionIOExceptionRandomAccessFile.readBoolean()byte readByte()
throws IOExceptionIOExceptionRandomAccessFile.readByte()char readChar()
throws IOExceptionIOExceptionRandomAccessFile.readChar()double readDouble()
throws IOExceptionIOExceptionRandomAccessFile.readDouble()float readFloat()
throws IOExceptionIOExceptionRandomAccessFile.readFloat()void readFully(byte[] b)
throws IOExceptionIOExceptionRandomAccessFile.readFully(byte[])void readFully(byte[] b,
int off,
int len)
throws IOExceptionIOExceptionRandomAccessFile.readFully(byte[],int,int)int readInt()
throws IOExceptionIOExceptionRandomAccessFile.readInt()String readLine() throws IOException
IOExceptionRandomAccessFile.readLine()long readLong()
throws IOExceptionIOExceptionRandomAccessFile.readLong()short readShort()
throws IOExceptionIOExceptionRandomAccessFile.readShort()int readUnsignedByte()
throws IOExceptionIOExceptionRandomAccessFile.readUnsignedByte()int readUnsignedInt()
throws IOExceptionIOExceptionint readUnsignedShort()
throws IOExceptionIOExceptionRandomAccessFile.readUnsignedShort()String readUTF() throws IOException
IOExceptionRandomAccessFile.readUTF()void seek(long pos) throws IOException
IOExceptionRandomAccessFile.seek(long)void setLength(long newLength)
throws IOExceptionIOExceptionRandomAccessFile.setLength(long)int skipBytes(int n)
throws IOExceptionIOExceptionRandomAccessFile.skipBytes(int)void write(byte[] b)
throws IOExceptionIOExceptionRandomAccessFile.write(byte[])void write(byte[] b,
int off,
int len)
throws IOExceptionIOExceptionRandomAccessFile.write(byte[],int,int)void write(int b)
throws IOExceptionIOExceptionRandomAccessFile.write(int)void writeBoolean(boolean v)
throws IOExceptionIOExceptionRandomAccessFile.writeBoolean(boolean)void writeByte(int v)
throws IOExceptionIOExceptionRandomAccessFile.writeByte(int)void writeBytes(String s) throws IOException
IOExceptionRandomAccessFile.writeBytes(String)void writeChar(int v)
throws IOExceptionIOExceptionRandomAccessFile.writeChar(int)void writeChars(String s) throws IOException
IOExceptionRandomAccessFile.writeChars(String)void writeDouble(double v)
throws IOExceptionIOExceptionRandomAccessFile.writeDouble(double)void writeFloat(float v)
throws IOExceptionIOExceptionRandomAccessFile.writeFloat(float)void writeInt(int v)
throws IOExceptionIOExceptionRandomAccessFile.writeInt(int)void writeLong(long v)
throws IOExceptionIOExceptionRandomAccessFile.writeLong(long)void writeShort(int v)
throws IOExceptionIOExceptionRandomAccessFile.writeShort(int)void writeUTF(String str) throws IOException
IOExceptionRandomAccessFile.writeUTF(String)