static void writeDocRaw(Document doc, PrintStream out) throws IOException { out.println(doc.writeSGML(null).toString()); out.flush(); return; }
public static String processDocument(Document doc, AceDocument aceDoc) { addAnnotations(doc, aceDoc); return doc.writeSGML(null).toString(); }