public final class IORandomAccessFile
extends java.io.RandomAccessFile
RandomAccessFile to provide access to the File and mode passed on construction.RandomAccessFile,
RandomAccessFileMode| Constructor and Description |
|---|
IORandomAccessFile(java.io.File file,
java.lang.String mode)
Constructs a new instance by calling
RandomAccessFile.RandomAccessFile(File, String). |
IORandomAccessFile(java.lang.String name,
java.lang.String mode)
Constructs a new instance by calling
RandomAccessFile.RandomAccessFile(String, String). |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile()
Gets the file passed to
IORandomAccessFile(File, String). |
java.lang.String |
getMode()
Gets the mode passed to
IORandomAccessFile(File, String). |
java.lang.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(java.io.File file,
java.lang.String mode)
throws java.io.FileNotFoundException
RandomAccessFile.RandomAccessFile(File, String).file - the file objectmode - the access mode, as described in RandomAccessFile.RandomAccessFile(File, String).java.io.FileNotFoundException - Thrown by RandomAccessFile.RandomAccessFile(File, String).RandomAccessFile.RandomAccessFile(File, String)public IORandomAccessFile(java.lang.String name,
java.lang.String mode)
throws java.io.FileNotFoundException
RandomAccessFile.RandomAccessFile(String, String).name - the file objectmode - the access mode, as described in RandomAccessFile.RandomAccessFile(String, String).java.io.FileNotFoundException - Thrown by RandomAccessFile.RandomAccessFile(String, String).RandomAccessFile.RandomAccessFile(String, String)public java.io.File getFile()
IORandomAccessFile(File, String).IORandomAccessFile(File, String).public java.lang.String getMode()
IORandomAccessFile(File, String).IORandomAccessFile(File, String).public java.lang.String toString()
File.toString() method.toString in class java.lang.ObjectFile.toString()Copyright © 2010 - 2025 Adobe. All Rights Reserved