public void writeToFile ( Element elem , File outFile ) throws IOException { try ( OutputStream outStream = new BufferedOutputStream ( new FileOutputStream ( outFile , false ) ) ) { writeToStream ( elem , outStream ) ; } }
Writes an NcML element to an output file .