gpt4 book ai didi

com.ctc.wstx.sax.WrappedSaxException类的使用及代码示例

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

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

WrappedSaxException介绍

[英]Simple type-safe wrapper used for "tunneling" SAX exceptions through interfaces that do not allow them to be thrown. This is done by extending RuntimeException.
[中]简单的类型安全包装器,用于通过不允许抛出SAX异常的接口“隧道”SAX异常。这是通过扩展RuntimeException来实现的。

代码示例

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

public void dtdProcessingInstruction(String target, String data)
{
  if (mContentHandler != null) {
    try {
      mContentHandler.processingInstruction(target, data);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

throw wse.getSaxException();

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

throw wse.getSaxException();

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

public void dtdSkippedEntity(String name)
{
  if (mContentHandler != null) {
    try {
      mContentHandler.skippedEntity(name);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

throw wse.getSaxException();

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

public void attributeDecl(String eName, String aName, String type, String mode, String value)
{
  if (mDeclHandler != null) {
    try {
      mDeclHandler.attributeDecl(eName, aName, type, mode, value);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

throw wse.getSaxException();

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

public void dtdExternalEntityDecl(String name, String publicId, String systemId)
{
  if (mDeclHandler != null) {
    try {
      mDeclHandler.externalEntityDecl(name, publicId, systemId);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

throw wse.getSaxException();

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

public void dtdComment(char[] data, int offset, int len)
{
  if (mLexicalHandler != null) {
    try {
      mLexicalHandler.comment(data, offset, len);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

DTDInfo dtdInfo = mScanner.getDTDInfo();
} catch (WrappedSaxException wse) {
  throw wse.getSaxException();

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

public void dtdElementDecl(String name, String model)
{
  if (mDeclHandler != null) {
    try {
      mDeclHandler.elementDecl(name, model);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

代码示例来源:origin: woodstox/wstx-asl

DTDInfo dtdInfo = mScanner.getDTDInfo();
} catch (WrappedSaxException wse) {
  throw wse.getSaxException();

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

public void dtdInternalEntityDecl(String name, String value)
{
  if (mDeclHandler != null) {
    try {
      mDeclHandler.internalEntityDecl(name, value);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

代码示例来源:origin: woodstox/wstx-lgpl

DTDInfo dtdInfo = mScanner.getDTDInfo();
} catch (WrappedSaxException wse) {
  throw wse.getSaxException();

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

public void dtdUnparsedEntityDecl(String name, String publicId, String systemId, String notationName, URL baseURL)
  throws XMLStreamException
{
  if (mDTDHandler != null) {
    // SAX expects system id to be fully resolved?
    if (systemId.indexOf(':') < 0) { // relative path...
      try {
        systemId = URLUtil.urlFromSystemId(systemId, baseURL).toExternalForm();
      } catch (IOException ioe) {
        throw new WstxIOException(ioe);
      }
    }
    try {
      mDTDHandler.unparsedEntityDecl(name, publicId, systemId, notationName);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

public void dtdNotationDecl(String name, String publicId, String systemId, URL baseURL)
  throws XMLStreamException
{
  if (mDTDHandler != null) {
    /* 24-Nov-2006, TSa: Note: SAX expects system identifiers to
     *  be fully resolved when reported...
     */
    if (systemId != null && systemId.indexOf(':') < 0) {
      try {
        systemId = URLUtil.urlFromSystemId(systemId, baseURL).toExternalForm();
      } catch (IOException ioe) {
        throw new WstxIOException(ioe);
      }
    }
    try {
      mDTDHandler.notationDecl(name, publicId, systemId);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

@Override
public void dtdProcessingInstruction(String target, String data)
{
  if (mContentHandler != null) {
    try {
      mContentHandler.processingInstruction(target, data);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

代码示例来源:origin: woodstox/wstx-asl

public void dtdProcessingInstruction(String target, String data)
{
  if (mContentHandler != null) {
    try {
      mContentHandler.processingInstruction(target, data);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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

public void dtdProcessingInstruction(String target, String data)
{
  if (mContentHandler != null) {
    try {
      mContentHandler.processingInstruction(target, data);
    } catch (SAXException sex) {
      throw new WrappedSaxException(sex);
    }
  }
}

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