public final class IORandomAccessFile extends RandomAccessFile
RandomAccessFile,
RandomAccessFileMode| Constructor and Description |
|---|
IORandomAccessFile(File file,
String mode)
Constructs a new instance by calling
RandomAccessFile(File, String). |
IORandomAccessFile(String name,
String mode)
Constructs a new instance by calling
RandomAccessFile(String, String). |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
Gets the file passed to
IORandomAccessFile(File, String). |
String |
getMode()
Gets the mode passed to
IORandomAccessFile(File, String). |
String |
toString()
Returns the pathname string of this abstract pathname.
|
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic IORandomAccessFile(File file, String mode) throws FileNotFoundException
RandomAccessFile(File, String).file - the file objectmode - the access mode, as described in RandomAccessFile(File, String).FileNotFoundException - Thrown by RandomAccessFile(File, String).RandomAccessFile(File, String)public IORandomAccessFile(String name, String mode) throws FileNotFoundException
RandomAccessFile(String, String).name - the file objectmode - the access mode, as described in RandomAccessFile(String, String).FileNotFoundException - Thrown by RandomAccessFile(String, String).RandomAccessFile(String, String)public File getFile()
IORandomAccessFile(File, String).IORandomAccessFile(File, String).public String getMode()
IORandomAccessFile(File, String).IORandomAccessFile(File, String).public String toString()
File.toString() method.toString in class ObjectFile.toString()