org.jdom.DocType.setInternalSubset()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(118)

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

DocType.setInternalSubset介绍

[英]This sets the data for the internal subset.
[中]这将设置内部子集的数据。

代码示例

代码示例来源:origin: org.jdom/jdom-legacy

/**
 * This signifies that the reading of the DTD is complete.
 *
 * @throws SAXException
 */
public void endDTD() throws SAXException {
  document.getDocType().setInternalSubset(internalSubset.toString());
  inDTD = false;
  inInternalSubset = false;
}

代码示例来源:origin: net.sf.aislib.tools.mapping/library

"<!ENTITY  db_part_" + xmlName + "   SYSTEM \"./" + DB_PARTS_DIR + "/" + xmlName + ".xml\">\n");
docType.setInternalSubset(entities.toString());

代码示例来源:origin: org.jibx/jibx-extras

public void writeDocType(String name, String sys, String pub, String subset)
    throws IOException {
  DocType docType;
  if(null != pub) {
    docType = new DocType(name, pub, sys);
  } else if(null != sys) {
    docType = new DocType(name, sys);
  } else {
    docType = new DocType(name);
  }
  if(null != subset) {
    docType.setInternalSubset(subset);
  }
  this.document.setDocType(docType);
}

代码示例来源:origin: org.jdom/jdom-legacy

docType.setPublicID(publicID);
docType.setSystemID(systemID);
docType.setInternalSubset(internalDTD);

相关文章