@ 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 .