org.quartz.xml.XMLSchedulingDataProcessor.getInputStream()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(196)

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

XMLSchedulingDataProcessor.getInputStream介绍

[英]Returns an InputStream from the fileName as a resource.
[中]从文件名返回一个InputStream作为资源。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xmlfile named <code>fileName</code> with the given system
  3. * ID.
  4. *
  5. * @param fileName
  6. * meta data file name.
  7. * @param systemId
  8. * system ID.
  9. */
  10. protected void processFile(String fileName, String systemId)
  11. throws ValidationException, ParserConfigurationException,
  12. SAXException, IOException, SchedulerException,
  13. ClassNotFoundException, ParseException, XPathException {
  14. prepForProcessing();
  15. log.info("Parsing XML file: " + fileName +
  16. " with systemId: " + systemId);
  17. InputSource is = new InputSource(getInputStream(fileName));
  18. is.setSystemId(systemId);
  19. process(is);
  20. maybeThrowValidationException();
  21. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xmlfile named <code>fileName</code> with the given system
  3. * ID.
  4. *
  5. * @param fileName
  6. * meta data file name.
  7. * @param systemId
  8. * system ID.
  9. */
  10. protected void processFile(String fileName, String systemId)
  11. throws ValidationException, ParserConfigurationException,
  12. SAXException, IOException, SchedulerException,
  13. ClassNotFoundException, ParseException, XPathException {
  14. prepForProcessing();
  15. log.info("Parsing XML file: " + fileName +
  16. " with systemId: " + systemId);
  17. InputSource is = new InputSource(getInputStream(fileName));
  18. is.setSystemId(systemId);
  19. process(is);
  20. maybeThrowValidationException();
  21. }

相关文章