private synchronized void prepareFile ( ) throws IOException { outputFile = new File ( getFileName ( ) ) ; if ( outputFile . exists ( ) ) outputFile . delete ( ) ; if ( outputFile . isDirectory ( ) ) throw new IOException ( "I/O Error on creating file: File is a directory!" ) ; outputFile . createNewFile ( ) ; if ( ! outputFile . canWrite ( ) ) throw new IOException ( "I/O Error on creating file: Unable to write into file!" ) ; }
Creates the output file on the file system .