public class RGroupQueryWriter extends DefaultChemObjectWriter
MDLV2000Writer
to
create CTAB data blocks.Constructor and Description |
---|
RGroupQueryWriter()
Zero argument constructor.
|
RGroupQueryWriter(Writer out)
Constructs a new writer that can write an
IRGroupQuery
to the Symx RGFile format. |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<? extends IChemObject> classObject)
Returns true for accepted input types.
|
void |
close()
Flushes the output and closes this object.
|
IResourceFormat |
getFormat()
Returns output format.
|
void |
setWriter(OutputStream output)
Sets the writer to given output stream.
|
void |
setWriter(Writer out)
Sets the writer.
|
void |
write(IChemObject object)
The actual writing of the output.
|
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
public RGroupQueryWriter(Writer out)
IRGroupQuery
to the Symx RGFile format.out
- The Writer to write topublic RGroupQueryWriter()
public boolean accepts(Class<? extends IChemObject> classObject)
classObject
- IChemObject
of which is tested if it can be handled.IChemObject
can be handled.public void close() throws IOException
IOException
- when the wrapper IO class cannot be closed.public IResourceFormat getFormat()
public void setWriter(OutputStream output) throws CDKException
CDKException
public void setWriter(Writer out) throws CDKException
CDKException
public void write(IChemObject object) throws CDKException
object
- the object of which the content is outputtedCDKException
- could not write RGroup queryCopyright © 2021. All rights reserved.