java.nio.file for Remote Systems
The New I/O File API (java.nio.file ), introduced in Java SE 7, has overcome several shortcomings in the File API. Most importantly, it is now designed for extension. For example, you can write a FileSystemProvider to perform remote file management.