Some snippets of Java 7 NIO