gpt4 book ai didi

net.sf.okapi.common.XMLWriter.writeEndDocument()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 05:21:05 29 4
gpt4 key购买 nike

本文整理了Java中net.sf.okapi.common.XMLWriter.writeEndDocument()方法的一些代码示例,展示了XMLWriter.writeEndDocument()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLWriter.writeEndDocument()方法的具体详情如下:
包路径:net.sf.okapi.common.XMLWriter
类名称:XMLWriter
方法名:writeEndDocument

XMLWriter.writeEndDocument介绍

[英]Writes the end of the document. This method closes any open tag, and flush the writer.
[中]写文档的结尾。此方法关闭所有打开的标记,并刷新写入程序。

代码示例

代码示例来源:origin: net.sf.okapi/okapi-core

/**
 * Writes the end of the TMX document.
 */
public void writeEndDocument () {
  writer.writeEndElementLineBreak(); // body
  writer.writeEndElementLineBreak(); // tmx
  writer.writeEndDocument();
}

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-persistence

@Override
protected void endWriting(OutputStream outStream) {
  writer.writeEndElementLineBreak(); // body
  writer.writeEndDocument();
  writer.close();
}

代码示例来源:origin: net.sf.okapi.steps/okapi-step-leveraging

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

代码示例来源:origin: net.sf.okapi/okapi-core

/**
 * 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;
}

代码示例来源:origin: net.sf.okapi.connectors/okapi-connector-microsoft

xmlWriter.writeElementString("MaxTranslations", String.valueOf(maxHits));
xmlWriter.writeEndDocument();
xmlWriter.close();
return sw.toString();

代码示例来源:origin: net.sf.okapi.steps/okapi-step-rainbowkit

XR.writeEndDocument();
XR.close();

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-segmentation

writer.writeEndDocument();
  modified = false;
} finally {

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com