public class RGroupQueryReader extends DefaultChemObjectReader
The RGFile format is described in the manual "CTFile Formats" , Chapter 5.
IChemObjectReader.ModeerrorHandler, mode| Constructor and Description |
|---|
RGroupQueryReader()
Default constructor, input not set.
|
RGroupQueryReader(InputStream in)
Constructs a new RgroupQueryReader that can read RgroupAtomContainerSet
from a given InputStream.
|
RGroupQueryReader(Reader in)
Constructs a new RgroupQueryReader that can read RgroupAtomContainerSet
from a given Reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> classObject)
Returns whether the given
IChemObject can be read or written. |
void |
close()
Closes this IChemObjectIO's resources.
|
IResourceFormat |
getFormat()
Returns the
IResourceFormat class for this IO class. |
<T extends IChemObject> |
read(T object)
Check input IChemObject and proceed to parse.
|
void |
setReader(InputStream input)
Sets the InputStream from which this ChemObjectReader should read
the contents.
|
void |
setReader(Reader input)
Sets the input Reader.
|
fireFrameRead, handleError, handleError, handleError, handleError, setErrorHandler, setReaderModeaddChemObjectIOListener, 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 RGroupQueryReader()
public RGroupQueryReader(InputStream in)
in - The InputStream to read from.public RGroupQueryReader(Reader in)
in - The Reader to read from.public void setReader(Reader input) throws CDKException
input - Reader objectCDKExceptionpublic void setReader(InputStream input) throws CDKException
IChemObjectReaderCDKExceptionpublic IResourceFormat getFormat()
IChemObjectIOIResourceFormat class for this IO class.public boolean accepts(Class<? extends IChemObject> classObject)
IChemObjectIOIChemObject can be read or written.classObject - IChemObject of which is tested if it can be handled.IChemObject can be handled.public void close()
throws IOException
IChemObjectIOIOException - when the wrapper IO class cannot be closed.public <T extends IChemObject> T read(T object) throws CDKException
object - class must be of type RGroupQueryCDKException - it is thrown if
the type of information is not available from
the inputCopyright © 2021. All rights reserved.