This methods is not part of the libSBML SBMLReader API.
@param stream the stream of data to be read.
@return an {@link SBMLDocument} created from the SBML content. @throws XMLStreamException if any problems prevent to create a {@link SBMLDocument}
182183184185186187188189190191192
throw new IOException("No file to open!"); // Read SBML document if valid SBML SBMLReader reader = new SBMLReader(); try { document = reader.readSBMLFromStream(instream); createCytoscapeGraphFromSBMLDocument(); } catch (XMLStreamException e) { e.printStackTrace(); document = null;