Package org.openscience.cdk.io
Class WriterFactory
- java.lang.Object
-
- org.openscience.cdk.io.WriterFactory
-
-
Constructor Summary
Constructors Constructor Description WriterFactory()
Constructs a ChemObjectIOInstantionTests.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IChemObjectWriter
createWriter(IChemFormat format)
Creates a new IChemObjectWriter based on the given IChemFormat.IChemFormat[]
findChemFormats(int features)
Finds IChemFormats that provide a container for serialization for the given features.int
formatCount()
void
registerWriter(Class<?> writer)
-
-
-
Method Detail
-
registerWriter
public void registerWriter(Class<?> writer)
-
findChemFormats
public IChemFormat[] findChemFormats(int features)
Finds IChemFormats that provide a container for serialization for the given features. The syntax of the integer is explained in the DataFeatures class.- Parameters:
features
- the data features for which a IChemFormat is searched- Returns:
- an array of IChemFormat's that can contain the given features
- See Also:
DataFeatures
-
formatCount
public int formatCount()
-
createWriter
public IChemObjectWriter createWriter(IChemFormat format)
Creates a new IChemObjectWriter based on the given IChemFormat.
-
-