@Override
    public OutputStream getOutputStream() throws IOException {
        if (Files.isDirectory(this.path)) {
            throw new FileNotFoundException(getPath() + " (is a directory)");
        }
        return Files.newOutputStream(this.path);
    }
@ Override public OutputStream getOutputStream ( ) throws IOException { if ( Files . isDirectory ( this . path ) ) { throw new FileNotFoundException ( getPath ( ) + " (is a directory)" ) ; } return Files . newOutputStream ( this . path ) ; }
This implementation opens a OutputStream for the underlying file.

@see java.nio.file.spi.FileSystemProvider#newOutputStream(Path, OpenOption...)