Package org.openscience.cdk.io
Class WriterFactory
java.lang.Object
org.openscience.cdk.io.WriterFactory
Helper tool to create IChemObjectWriters.
- Author:
- Egon Willighagen <ewilligh@uni-koeln.de>
- Source code:
- main
- Belongs to CDK module:
- io
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWriter
(IChemFormat format) Creates a new IChemObjectWriter based on the given IChemFormat.findChemFormats
(int features) Finds IChemFormats that provide a container for serialization for the given features.int
void
registerWriter
(Class<?> writer)
-
Constructor Details
-
WriterFactory
public WriterFactory()Constructs a ChemObjectIOInstantionTests.
-
-
Method Details
-
registerWriter
-
findChemFormats
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:
-
formatCount
public int formatCount() -
createWriter
Creates a new IChemObjectWriter based on the given IChemFormat.
-