本文整理了Java中net.sf.okapi.common.Event.getStartSubDocument()
方法的一些代码示例,展示了Event.getStartSubDocument()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.getStartSubDocument()
方法的具体详情如下:
包路径:net.sf.okapi.common.Event
类名称:Event
方法名:getStartSubDocument
[英]Convenience method returns the IResource as a StartSubDocument. The caller should confirm the Event type using isStartSubDocument before calling this method.
[中]便利方法将IResource作为StartSubDocument返回。调用方应在调用此方法之前使用isStartSubDocument确认事件类型。
代码示例来源:origin: net.sf.okapi.steps/okapi-step-rainbowkit
@Override
protected void processStartSubDocument (Event event) {
// Do not start one explicitly
// Let the first unit to trigger the start of the file
// otherwise we may get empty file elements
// One thing to do: set the original (case of the DOCX-type documents with sub-documents)
StartFileData sfd = new StartFileData(null);
sfd.setOriginal(event.getStartSubDocument().getName());
writer.setStartFileData(sfd);
}
代码示例来源:origin: net.sf.okapi/okapi-core
StartSubDocument ssd = event.getStartSubDocument();
if (ssd == null) break;
if (startDocument == null) {
代码示例来源:origin: net.sf.okapi/okapi-core
break;
case START_SUBDOCUMENT:
processStartSubDocument(event.getStartSubDocument());
break;
case END_SUBDOCUMENT:
内容来源于网络,如有侵权,请联系作者删除!