- mode
- one of the three mapping modes.
- position
- the starting position of the file.
- size
- the size of the region to map into memory.
Documentation for this section has not yet been entered.
Type Reason Java.Nio.Channels.NonReadableChannelException if the FileChannel is not opened for reading but the given mode is "READ_ONLY". Java.Nio.Channels.NonWritableChannelException if the FileChannel is not opened for writing but the given mode is not "READ_ONLY". Java.Lang.IllegalArgumentException if the given parameters of position and size are not correct. Both must be non negative. size also must not be bigger than max integer. Java.IO.IOException if any I/O error occurs.
Maps the file into memory. There can be three modes: read-only, read/write and private. After mapping, changes made to memory or the file channel do not affect the other storage place.
Note: mapping a file into memory is usually expensive.