Package net.metanotion.io
Interface RandomAccessInterface
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
RAIFile
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canWrite()
I2P is the file writable? Only valid if the File constructor was used, not the RAF constructorvoid
close()
long
long
length()
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
short
int
int
int
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
-
Method Details
-
getFilePointer
- Throws:
IOException
-
length
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
seek
- Throws:
IOException
-
setLength
- Throws:
IOException
-
canWrite
boolean canWrite()I2P is the file writable? Only valid if the File constructor was used, not the RAF constructor- Since:
- 0.8.8
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
readBoolean
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readChar
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLine
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readUnsignedShort
- Throws:
IOException
-
readUnsignedInt
- Throws:
IOException
-
readUTF
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
writeBoolean
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeChar
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
writeChars
- Throws:
IOException
-
writeUTF
- Throws:
IOException
-