use of org.sbml.jsbml.xml.stax.SBMLReader in project vcell by virtualcell.
the class VCellService method getSBML.
private static SBMLDocument getSBML(final SimulationServiceImpl client, final String vcml, final String applicationName) throws ThriftDataAccessException, XMLStreamException, IOException {
final String sbml;
try {
sbml = client.getSBML(vcml, applicationName);
} catch (final TException e) {
throw new IOException(e);
}
final SBMLReader reader = new SBMLReader();
final SBMLDocument document = reader.readSBMLFromString(sbml);
return document;
}
Aggregations