org.openscience.cdk.io
Class WriterFactory

java.lang.Object
  extended by org.openscience.cdk.io.WriterFactory

public class WriterFactory
extends Object

Helper tool to create IChemObjectWriters.

Author:
Egon Willighagen
Belongs to CDK module:
io
Source code:
cdk-1.4.x

Constructor Summary
WriterFactory()
          Constructs a ChemObjectIOInstantionTests.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterFactory

public WriterFactory()
Constructs a ChemObjectIOInstantionTests.

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.