protected void copyFile ( File outputDirectory , File sourceFile , String targetFileName ) throws IOException { InputStream fileStream = new FileInputStream ( sourceFile ) ; try { copyStream ( outputDirectory , fileStream , targetFileName ) ; } finally { fileStream . close ( ) ; } }
Copy a single named file to the output directory .