some nio examples for java