/** * Create deferred output stream. * * @param fileName the system-dependent file name * @throws FileNotFoundException if the file exists but is a directory * rather than a regular file, does not exist but cannot be * created, or cannot be opened for any other reason. */ private DeferredCreateFileOutputStream(String fileName) throws FileNotFoundException { this.fileName = fileName; throwExceptionIfNotWritable(fileName); }