question: public static void serializeTextAnnotationToFile ( TextAnnotation ta , String fileName , boolean forceOverwrite ) throws IOException { File outFile = new File ( fileName ) ; if ( outFile . exists ( ) && ! forceOverwrite ) throw new IOException ( "ERROR: " + NAME + ".serializeTextAnnotationToFile(): file '" + fileName + "' already exists." ) ; FileUtils . writeByteArrayToFile ( outFile , serializeTextAnnotationToBytes ( ta ) ) ; }
target:  Serialize a TextAnnotation and then write to file. If forceOverwrite_ is set to false and file already exists, this method throws an exception.