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)
| 599 | * @since 2.0 |
| 600 | */ |
| 601 | public static MappedByteBuffer map(File file) throws IOException { |
| 602 | checkNotNull(file); |
| 603 | return map(file, MapMode.READ_ONLY); |
| 604 | } |
| 605 | |
| 606 | /** |
| 607 | * Fully maps a file in to memory as per |
no test coverage detected