Trying hand with java nio