/** * Writes the end of the TMX document. */ public void writeEndDocument () { writer.writeEndElementLineBreak(); // body writer.writeEndElementLineBreak(); // tmx writer.writeEndDocument(); }
@Override protected void endWriting(OutputStream outStream) { writer.writeEndElementLineBreak(); // body writer.writeEndDocument(); writer.close(); }
private void finishTemporaryFiles (XMLWriter htmlWriter) { // Close the temporary source input if ( htmlWriter != null ) { htmlWriter.writeEndElement(); // html htmlWriter.writeEndDocument(); htmlWriter.close(); // htmlWriter should be reset to null by the caller } // Close the original entry store if ( store != null ) { store.close(); } }
/** * Writes the end of this the document and close it. * If a <file> element is currently opened, it is closed automatically. */ public void close () { if ( writer != null ) { if ( !hasFile ) { writeStartFile(original, dataType, skeletonPath, fwConfigId, fwInputEncoding, null); } if ( inFile ) { writeEndFile(); } writer.writeEndElementLineBreak(); // xliff writer.writeEndDocument(); writer.close(); writer = null; } fwConfigId = null; fwInputEncoding = null; skeletonPath = null; }
xmlWriter.writeElementString("MaxTranslations", String.valueOf(maxHits)); xmlWriter.writeEndDocument(); xmlWriter.close(); return sw.toString();
XR.writeEndDocument(); XR.close();
writer.writeEndDocument(); modified = false; } finally {