FileChannel - ByteBuffer - Memory-mapped IO - Locks

FileChannel - ByteBuffer - Memory-mapped IO - Locks

Demos for writing and reading files with FileChannel and ByteArray.

Tests for write speed with RandomAccessFile, FileChannel, heap buffer, native buffer, memory-mapped buffer, and FileOutputStream.