public class RGroupQueryReader extends DefaultChemObjectReader
The RGFile format is described in the manual "CTFile Formats" , Chapter 5.
IChemObjectReader.Mode
errorHandler, 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, setReaderMode
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 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 objectCDKException
public void setReader(InputStream input) throws CDKException
IChemObjectReader
CDKException
public IResourceFormat getFormat()
IChemObjectIO
IResourceFormat
class for this IO class.public boolean accepts(Class<? extends IChemObject> classObject)
IChemObjectIO
IChemObject
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
IChemObjectIO
IOException
- 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.