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 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, getIOSettings, removeChemObjectIOListener
public RGroupQueryWriter(Writer out)
IRGroupQuery
to the Symx RGFile format.out
- The Writer to write topublic RGroupQueryWriter()
@TestMethod(value="testAccepts") public boolean accepts(Class classObject)
classObject
- IChemObject
of which is tested if it can be handled.IChemObject
can be handled.@TestMethod(value="testClose") public void close() throws IOException
IOException
@TestMethod(value="testGetFormat") 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 outputedCDKException
IOException