Package net.metanotion.io
Interface RandomAccessInterface
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RAIFile
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()I2P is the file writable? Only valid if the File constructor was used, not the RAF constructorvoidclose()longlonglength()intread()intread(byte[] b) intread(byte[] b, int off, int len) booleanbytereadByte()charreadChar()doublefloatvoidreadFully(byte[] b) voidreadFully(byte[] b, int off, int len) intreadInt()readLine()longreadLong()shortintintintreadUTF()voidseek(long pos) voidsetLength(long newLength) intskipBytes(int n) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) voidwriteBoolean(boolean v) voidwriteByte(int v) voidwriteBytes(String s) voidwriteChar(int v) voidwriteChars(String s) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidwriteShort(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:
closein interfaceAutoCloseable- Specified by:
closein 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
-