anchor.diff:  | file = new File("path/to/file.txt")     | path = Paths.get("path/to/file.txt")
   | file = new File(parentFile, "file.txt") | path = parentPath.resolve("file.txt")
   | file.getFileName()                      | path.getFileName().toString()
  -| file.mkdirs()                            | Files.createDirectories(path)
  +| file.mkdirs()                           | Files.createDirectories(path)
   | new FileOutputStream(file)              | Files.newOutputStream (path)
   | new FileInputStream(file)               | Files.newInputStream (path)
   | file.length()                           | Files.size(path)
  
positive.code: path = FileSystems.getDefault().getPath("path/to/file.txt");
  ----
  
  As the default file system is the local one, you get a path to local file.
  
  But you can plug additional file systems: http://docs.oracle.com/javase/7/docs/technotes/guides/io/fsp/zipfilesystemprovider.html[ZIP], https://github.com/maddingo/nio-fs-provider[SFTP, SMB, WebDAV], https://github.com/lucastheisen/jsch-nio[SSH/SCP], https://github.com/Upplication/Amazon-S3-FileSystem-NIO2[Amazon S3], https://github.com/google/jimfs[In memory], https://github.com/damiencarol/jsr203-hadoop[HDFS], ...
  It means you can read a remote file as if it were local
  
  .Read the content of a Zip file
  [source,java]
  ----
  URI zipUri = new URI("jar:file:/path/to/archive.zip")
  
negative.code: Many APIs (JAXB, Jackson to name a few) don't use `Path`s to read/write files, the workaround is usually use an `InputStream` or an `OutputStream`.
  
  [source,java]
  ----
  try(InputStream inputStream = Files.newInputStream(path)) {
    Thing thing = (Thing) unmarshaller.unmarshal(inputStream);
  }
  ----
  
  == Multiple file systems
  
  When the `File` is only for local files, `Path` can also be used to access remote files.
  A `Path` is associated to a `FileSystem`. 
  
  To create a new `Path` instances, there is not constructor (`Path` is interface), we need to call a factory method. The above 2 lines are the same:
  
  [source,java]
  ----
  