Use FileChannel
to access files.
Use FileChannel
to access files. Slower, but safer. Keeps many file handles open,
and might cause crash if 'maximal number of open files per process' is exceed.
Use FileChannel
to access files, no file handles are kept open.
Use FileChannel
to access files, no file handles are kept open.
Slower and safer.
Memory maps file into read-only ByteBuffer.
Memory maps file into read-only ByteBuffer. File must be smaller than 2GB due to addressing limit.
to be mapped
ByteBuffer of memory mapped file