/** * Method to create a default AtomTypeFactory, using the given InputStream. * An AtomType of this kind is not cached. * * @see #getInstance(String, IChemObjectBuilder) * @param ins InputStream containing the data * @param format String representing the possible formats ('xml' and 'txt') * @param builder IChemObjectBuilder used to make IChemObject instances * @return The AtomTypeFactory for the given data file */ public static AtomTypeFactory getInstance(InputStream ins, String format, IChemObjectBuilder builder) { return new AtomTypeFactory(ins, format, builder); }
/** * Method to create a default AtomTypeFactory, using the given InputStream. * An AtomType of this kind is not cached. * * @see #getInstance(String, IChemObjectBuilder) * @param ins InputStream containing the data * @param format String representing the possible formats ('xml' and 'txt') * @param builder IChemObjectBuilder used to make IChemObject instances * @return The AtomTypeFactory for the given data file */ public static AtomTypeFactory getInstance(InputStream ins, String format, IChemObjectBuilder builder) { return new AtomTypeFactory(ins, format, builder); }
/** * Method to create a specialized AtomTypeFactory. Available lists in CDK are: * <ul> * <li>org/openscience/cdk/config/data/jmol_atomtypes.txt * <li>org/openscience/cdk/config/data/mol2_atomtypes.xml * <li>org/openscience/cdk/config/data/structgen_atomtypes.xml * <li>org/openscience/cdk/config/data/mm2_atomtypes.xml * <li>org/openscience/cdk/config/data/mmff94_atomtypes.xml * <li>org/openscience/cdk/dict/data/cdk-atom-types.owl * <li>org/openscience/cdk/dict/data/sybyl-atom-types.owl * </ul> * * @param configFile String the name of the data file * @param builder INewChemObjectBuilder used to make IChemObject instances * @return The AtomTypeFactory for the given data file */ public static AtomTypeFactory getInstance(String configFile, IChemObjectBuilder builder) { if (tables == null) { tables = new Hashtable<String, AtomTypeFactory>(); } if (!(tables.containsKey(configFile))) { tables.put(configFile, new AtomTypeFactory(configFile, builder)); } return tables.get(configFile); }
/** * Method to create a specialized AtomTypeFactory. Available lists in CDK are: * <ul> * <li>org/openscience/cdk/config/data/jmol_atomtypes.txt * <li>org/openscience/cdk/config/data/mol2_atomtypes.xml * <li>org/openscience/cdk/config/data/structgen_atomtypes.xml * <li>org/openscience/cdk/config/data/mm2_atomtypes.xml * <li>org/openscience/cdk/config/data/mmff94_atomtypes.xml * <li>org/openscience/cdk/dict/data/cdk-atom-types.owl * <li>org/openscience/cdk/dict/data/sybyl-atom-types.owl * </ul> * * @param configFile String the name of the data file * @param builder INewChemObjectBuilder used to make IChemObject instances * @return The AtomTypeFactory for the given data file */ public static AtomTypeFactory getInstance(String configFile, IChemObjectBuilder builder) { if (tables == null) { tables = new Hashtable<String, AtomTypeFactory>(); } if (!(tables.containsKey(configFile))) { tables.put(configFile, new AtomTypeFactory(configFile, builder)); } return tables.get(configFile); }