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

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

本文整理了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

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param fileName
 *          meta data file name.
 * @param systemId
 *          system ID.
 */
protected void processFile(String fileName, String systemId)
  throws ValidationException, ParserConfigurationException,
    SAXException, IOException, SchedulerException,
    ClassNotFoundException, ParseException, XPathException {
  prepForProcessing();
  
  log.info("Parsing XML file: " + fileName + 
      " with systemId: " + systemId);
  InputSource is = new InputSource(getInputStream(fileName));
  is.setSystemId(systemId);
  
  process(is);
  
  maybeThrowValidationException();
}

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

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param fileName
 *          meta data file name.
 * @param systemId
 *          system ID.
 */
protected void processFile(String fileName, String systemId)
  throws ValidationException, ParserConfigurationException,
    SAXException, IOException, SchedulerException,
    ClassNotFoundException, ParseException, XPathException {
  prepForProcessing();
  
  log.info("Parsing XML file: " + fileName + 
      " with systemId: " + systemId);
  InputSource is = new InputSource(getInputStream(fileName));
  is.setSystemId(systemId);
  
  process(is);
  
  maybeThrowValidationException();
}

相关文章