public class CleaningRandomAccessFile extends RandomAccessFile
Weak references RAF can result in a resource leak when GC'ed which doesn't appear if the GC isn't running.
Constructor and Description |
---|
CleaningRandomAccessFile(File file,
String mode) |
CleaningRandomAccessFile(String name,
String mode) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
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, writeUTF
public CleaningRandomAccessFile(String name, String mode) throws FileNotFoundException
FileNotFoundException
public CleaningRandomAccessFile(File file, String mode) throws FileNotFoundException
FileNotFoundException
Copyright © 2020. All rights reserved.