com.ctc.wstx.api.ReaderConfig.findCustomInternalEntity()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(72)

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

ReaderConfig.findCustomInternalEntity介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

protected EntityDecl findEntity(String id, Object arg) throws XMLStreamException
{
  EntityDecl ed = (EntityDecl) mConfig.findCustomInternalEntity(id);
  if (ed == null && mGeneralEntities != null) {
    ed = (EntityDecl) mGeneralEntities.get(id);
  }
  /* 05-Mar-2006, TSa: Externally declared entities are illegal
   *   if we were declared as "standalone='yes'"...
   */
  if (mDocStandalone == DOC_STANDALONE_YES) {
    if (ed != null && ed.wasDeclaredExternally()) {
      throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
    }
  }
  return ed;
}

代码示例来源:origin: FasterXML/woodstox

@Override
protected EntityDecl findEntity(String id, Object arg)
  throws XMLStreamException
{
  EntityDecl ed = mConfig.findCustomInternalEntity(id);
  if (ed == null && mGeneralEntities != null) {
    ed = mGeneralEntities.get(id);
  }
  /* 05-Mar-2006, TSa: Externally declared entities are illegal
   *   if we were declared as "standalone='yes'"...
   */
  if (mDocStandalone == DOC_STANDALONE_YES) {
    if (ed != null && ed.wasDeclaredExternally()) {
      throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
    }
  }
  return ed;
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

protected EntityDecl findEntity(String id, Object arg) throws XMLStreamException
{
  EntityDecl ed = (EntityDecl) mConfig.findCustomInternalEntity(id);
  if (ed == null && mGeneralEntities != null) {
    ed = (EntityDecl) mGeneralEntities.get(id);
  }
  /* 05-Mar-2006, TSa: Externally declared entities are illegal
   *   if we were declared as "standalone='yes'"...
   */
  if (mDocStandalone == DOC_STANDALONE_YES) {
    if (ed != null && ed.wasDeclaredExternally()) {
      throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
    }
  }
  return ed;
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

@Override
protected EntityDecl findEntity(String id, Object arg)
  throws XMLStreamException
{
  EntityDecl ed = mConfig.findCustomInternalEntity(id);
  if (ed == null && mGeneralEntities != null) {
    ed = mGeneralEntities.get(id);
  }
  /* 05-Mar-2006, TSa: Externally declared entities are illegal
   *   if we were declared as "standalone='yes'"...
   */
  if (mDocStandalone == DOC_STANDALONE_YES) {
    if (ed != null && ed.wasDeclaredExternally()) {
      throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
    }
  }
  return ed;
}

代码示例来源:origin: Nextdoor/bender

@Override
protected EntityDecl findEntity(String id, Object arg)
  throws XMLStreamException
{
  EntityDecl ed = mConfig.findCustomInternalEntity(id);
  if (ed == null && mGeneralEntities != null) {
    ed = mGeneralEntities.get(id);
  }
  /* 05-Mar-2006, TSa: Externally declared entities are illegal
   *   if we were declared as "standalone='yes'"...
   */
  if (mDocStandalone == DOC_STANDALONE_YES) {
    if (ed != null && ed.wasDeclaredExternally()) {
      throwParseError(ErrorConsts.ERR_WF_ENTITY_EXT_DECLARED, ed.getName(), null);
    }
  }
  return ed;
}

相关文章

微信公众号

最新文章

更多

ReaderConfig类方法