Fully maps a file read-only in to memory as per FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long). Files are mapped from offset 0 to its length. This only works for files <= Integer#MAX_VALUE bytes. @param file the file to map @return a read-only buffer refl
(File file)
| 633 | |
| 634 | |
| 635 | public static MappedByteBuffer map(File file) throws IOException { |
| 636 | checkNotNull(file); |
| 637 | return map(file, MapMode.READ_ONLY); |
| 638 | } |
| 639 | |
| 640 | /** |
| 641 | * Fully maps a file in to memory as per |