Class IsotopeReader
- java.lang.Object
-
- org.openscience.cdk.config.isotopes.IsotopeReader
-
public class IsotopeReader extends Object
Reader that instantiates an XML parser and customized handler to process the isotope information in the CML2 isotope data file. The Reader first tries to instantiate a JAXP XML parser available from Sun JVM 1.4.0 and later. If not found it tries the Aelfred2 parser, and as last try the Xerces parser.- Author:
- Egon Willighagen
- Source code:
- main
- Belongs to CDK module:
- extra
-
-
Constructor Summary
Constructors Constructor Description IsotopeReader(InputStream input, IChemObjectBuilder builder)
Instantiates a new reader that parses the XML from the giveninput
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IIsotope>
readIsotopes()
Triggers the XML parsing of the data file and returns the read Isotopes.
-
-
-
Constructor Detail
-
IsotopeReader
public IsotopeReader(InputStream input, IChemObjectBuilder builder)
Instantiates a new reader that parses the XML from the giveninput
.- Parameters:
input
- InputStream with the XML sourcebuilder
- TheIChemObjectBuilder
used to create new IIsotope's.
-
-