org.camunda.bpm.model.bpmn.Bpmn.doReadModelFromInputStream()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(159)

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

Bpmn.doReadModelFromInputStream介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
 *
 * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
 * @return the model read
 * @throws ModelParseException if the model cannot be read
 */
public static BpmnModelInstance readModelFromStream(InputStream stream) {
 return INSTANCE.doReadModelFromInputStream(stream);
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected BpmnModelInstance doReadModelFromFile(File file) {
 InputStream is = null;
 try {
  is = new FileInputStream(file);
  return doReadModelFromInputStream(is);
 } catch (FileNotFoundException e) {
  throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
 } finally {
  IoUtil.closeSilently(is);
 }
}

代码示例来源:origin: camunda/camunda-bpmn-model

/**
 * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
 *
 * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
 * @return the model read
 * @throws ModelParseException if the model cannot be read
 */
public static BpmnModelInstance readModelFromStream(InputStream stream) {
 return INSTANCE.doReadModelFromInputStream(stream);
}

代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model

/**
 * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
 *
 * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
 * @return the model read
 * @throws ModelParseException if the model cannot be read
 */
public static BpmnModelInstance readModelFromStream(InputStream stream) {
 return INSTANCE.doReadModelFromInputStream(stream);
}

代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model

protected BpmnModelInstance doReadModelFromFile(File file) {
 InputStream is = null;
 try {
  is = new FileInputStream(file);
  return doReadModelFromInputStream(is);
 } catch (FileNotFoundException e) {
  throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
 } finally {
  IoUtil.closeSilently(is);
 }
}

代码示例来源:origin: camunda/camunda-bpmn-model

protected BpmnModelInstance doReadModelFromFile(File file) {
 InputStream is = null;
 try {
  is = new FileInputStream(file);
  return doReadModelFromInputStream(is);
 } catch (FileNotFoundException e) {
  throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
 } finally {
  IoUtil.closeSilently(is);
 }
}

相关文章