Back to Browse

Resize a MappedByteBuffer - Java NIO

413 views
Sep 3, 2016
14:12

Show you how to resize a MappedByteBuffer * 1. Open a MappedByteBuffer which its size is the filesize of associated file. * 2. print file content to console * 3. call the private unmap() method in FileChannel class * 4. print file content to console again to check the result

Download

0 formats

No download links available.

Resize a MappedByteBuffer - Java NIO | NatokHD