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));
}

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 ) ) ; }
serialize a textannotation and then write to file . if forceoverwrite_ is set to false and file already exists , this method throws an exception .
