public class SharedRandomAccessFile
extends java.io.RandomAccessFile
| Constructor and Description |
|---|
SharedRandomAccessFile(java.io.File file,
java.lang.String mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
employ()
Employs the file and returns resulting number of its clients.
|
java.io.File |
getFile() |
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 SharedRandomAccessFile(java.io.File file,
java.lang.String mode)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic java.io.File getFile()
public int employ()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.RandomAccessFilejava.io.IOException