Correct location of the javadoc comment.
Use java.nio for performance, if it's available.