Package org.apfloat.internal
Class DiskDataStorage.FileStorage
java.lang.Object
org.apfloat.internal.DiskDataStorage.FileStorage
- All Implemented Interfaces:
Serializable
- Enclosing class:
DiskDataStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
private FileChannel
private String
private RandomAccessFile
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
private void
init()
private void
void
setSize
(long size) void
transferFrom
(ReadableByteChannel in, long position, long size) void
transferTo
(WritableByteChannel out, long position, long size) private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
filename
-
file
-
randomAccessFile
-
fileChannel
-
-
Constructor Details
-
FileStorage
- Throws:
ApfloatRuntimeException
-
-
Method Details
-
init
- Throws:
ApfloatRuntimeException
-
setSize
- Throws:
IOException
ApfloatRuntimeException
-
transferFrom
public void transferFrom(ReadableByteChannel in, long position, long size) throws ApfloatRuntimeException - Throws:
ApfloatRuntimeException
-
transferTo
public void transferTo(WritableByteChannel out, long position, long size) throws ApfloatRuntimeException - Throws:
ApfloatRuntimeException
-
getFile
-
getRandomAccessFile
-
getFileChannel
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
ClassNotFoundException
-