Class RGroupQueryWriter
java.lang.Object
org.openscience.cdk.io.ChemObjectIO
org.openscience.cdk.io.DefaultChemObjectWriter
org.openscience.cdk.io.RGroupQueryWriter
- All Implemented Interfaces:
Closeable, AutoCloseable, IChemObjectIO, IChemObjectWriter
A writer for Symyx' Rgroup files (RGFiles).
An RGfile describes a single molecular query with Rgroups. Each RGfile is a combination of Ctabs defining the root molecule and each member of each Rgroup in the query.
This class relies on the
An RGfile describes a single molecular query with Rgroups. Each RGfile is a combination of Ctabs defining the root molecule and each member of each Rgroup in the query.
This class relies on the
MDLV2000Writer to
create CTAB data blocks.- Author:
- Mark Rijnbeek
- Keywords:
- Rgroup, R group, R-group
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZero argument constructor.RGroupQueryWriter(Writer out) Constructs a new writer that can write anIRGroupQueryto the Symx RGFile format. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(Class<? extends IChemObject> classObject) Returns true for accepted input types.voidclose()Flushes the output and closes this object.Returns output format.voidsetWriter(OutputStream output) Sets the writer to given output stream.voidSets the writer.voidwrite(IChemObject object) The actual writing of the output.Methods inherited from class ChemObjectIO
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerModifier and TypeMethodDescriptionvoidaddChemObjectIOListener(IChemObjectIOListener listener) Adds aIChemObjectIOListenerto this IChemObjectIO.<S extends IOSetting>
SaddSetting(IOSetting setting) Add an IOSetting to the reader/writer.voidaddSettings(Collection<IOSetting> settings) Adds a collection ofIOSettings to the reader/writer.protected voidfireIOSettingQuestion(IOSetting setting) FiresIChemObjectIOListener.processIOSettingQuestion(org.openscience.cdk.io.setting.IOSetting)for all managed listeners.Returns an array ofIOSettings defined by this IChemObjectIO class.Access all the listeners for this ChemObject Reader or Writer.<S extends IOSetting>
SgetSetting(String name) Access a named setting managed by this reader/writer.<S extends IOSetting>
SgetSetting(String name, Class<S> c) Access a named setting managed by this reader/writer.Access a collection ofIOSettings for this reader/writer.booleanhasSetting(String name) Determine whether this reader/writer has a setting of the provided name.voidRemoves aIChemObjectIOListenerfrom this IChemObjectIO.
-
Field Details
-
M_END
- See Also:
-
-
Constructor Details
-
RGroupQueryWriter
Constructs a new writer that can write anIRGroupQueryto the Symx RGFile format.- Parameters:
out- The Writer to write to
-
RGroupQueryWriter
public RGroupQueryWriter()Zero argument constructor.
-
-
Method Details
-
accepts
Returns true for accepted input types.- Parameters:
classObject-IChemObjectof which is tested if it can be handled.- Returns:
- true, if the
IChemObjectcan be handled.
-
close
Flushes the output and closes this object.- Throws:
IOException- when the wrapper IO class cannot be closed.
-
getFormat
Returns output format. -
setWriter
Sets the writer to given output stream.- Throws:
CDKException
-
setWriter
-
write
The actual writing of the output.- Parameters:
object- the object of which the content is outputted- Throws:
CDKException- could not write RGroup query
-