@TestClass(value="org.openscience.cdk.config.TXTBasedAtomTypeConfiguratorTest") public class TXTBasedAtomTypeConfigurator extends Object implements IAtomTypeConfigurator
Constructor and Description |
---|
TXTBasedAtomTypeConfigurator() |
Modifier and Type | Method and Description |
---|---|
List<IAtomType> |
readAtomTypes(IChemObjectBuilder builder)
Reads a text based configuration file.
|
void |
setInputStream(InputStream ins)
Sets the file containing the config data.
|
@TestMethod(value="testTXTBasedAtomTypeConfigurator") public TXTBasedAtomTypeConfigurator()
@TestMethod(value="testSetInputStream_InputStream") public void setInputStream(InputStream ins)
setInputStream
in interface IAtomTypeConfigurator
ins
- InputStream from which the atom type definitions are to be read@TestMethod(value="testReadAtomTypes_IChemObjectBuilder") public List<IAtomType> readAtomTypes(IChemObjectBuilder builder) throws IOException
readAtomTypes
in interface IAtomTypeConfigurator
builder
- IChemObjectBuilder used to construct the IAtomType's.IOException
- when a problem occured with reading from the InputStream