本文整理了Java中org.camunda.bpm.model.bpmn.Bpmn.doReadModelFromInputStream()
方法的一些代码示例,展示了Bpmn.doReadModelFromInputStream()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bpmn.doReadModelFromInputStream()
方法的具体详情如下:
包路径:org.camunda.bpm.model.bpmn.Bpmn
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!