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, removeChemObjectIOListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerpublic 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
CDKExceptionpublic void setWriter(Writer out) throws CDKException
CDKExceptionpublic void write(IChemObject object) throws CDKException
object - the object of which the content is outputedCDKException - could not write RGroup queryCopyright © 2017. All Rights Reserved.