Removed nio import to support Java 6 compilation.