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

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

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

  1. /**
  2. * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
  3. *
  4. * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
  5. * @return the model read
  6. * @throws ModelParseException if the model cannot be read
  7. */
  8. public static BpmnModelInstance readModelFromStream(InputStream stream) {
  9. return INSTANCE.doReadModelFromInputStream(stream);
  10. }

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

  1. protected BpmnModelInstance doReadModelFromFile(File file) {
  2. InputStream is = null;
  3. try {
  4. is = new FileInputStream(file);
  5. return doReadModelFromInputStream(is);
  6. } catch (FileNotFoundException e) {
  7. throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
  8. } finally {
  9. IoUtil.closeSilently(is);
  10. }
  11. }

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

  1. /**
  2. * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
  3. *
  4. * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
  5. * @return the model read
  6. * @throws ModelParseException if the model cannot be read
  7. */
  8. public static BpmnModelInstance readModelFromStream(InputStream stream) {
  9. return INSTANCE.doReadModelFromInputStream(stream);
  10. }

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

  1. /**
  2. * Allows reading a {@link BpmnModelInstance} from an {@link InputStream}
  3. *
  4. * @param stream the {@link InputStream} to read the {@link BpmnModelInstance} from
  5. * @return the model read
  6. * @throws ModelParseException if the model cannot be read
  7. */
  8. public static BpmnModelInstance readModelFromStream(InputStream stream) {
  9. return INSTANCE.doReadModelFromInputStream(stream);
  10. }

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

  1. protected BpmnModelInstance doReadModelFromFile(File file) {
  2. InputStream is = null;
  3. try {
  4. is = new FileInputStream(file);
  5. return doReadModelFromInputStream(is);
  6. } catch (FileNotFoundException e) {
  7. throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
  8. } finally {
  9. IoUtil.closeSilently(is);
  10. }
  11. }

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

  1. protected BpmnModelInstance doReadModelFromFile(File file) {
  2. InputStream is = null;
  3. try {
  4. is = new FileInputStream(file);
  5. return doReadModelFromInputStream(is);
  6. } catch (FileNotFoundException e) {
  7. throw new BpmnModelException("Cannot read model from file "+file+": file does not exist.");
  8. } finally {
  9. IoUtil.closeSilently(is);
  10. }
  11. }

相关文章