@TestClass(value="org.openscience.cdk.io.RGroupQueryReaderTest") public class RGroupQueryReader extends DefaultChemObjectReader
The RGFile format is described in the manual "CTFile Formats" , Chapter 5.
IChemObjectReader.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 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.
|
addChemObjectIOListener, getIOSettings, handleError, handleError, handleError, handleError, removeChemObjectIOListener, setErrorHandler, setReaderMode
public RGroupQueryReader()
public RGroupQueryReader(InputStream in)
in
- The InputStream to read from.public RGroupQueryReader(Reader in)
in
- The Reader to read from.@TestMethod(value="testSetReader_Reader") public void setReader(Reader input) throws CDKException
input
- Reader objectCDKException
@TestMethod(value="testSetReader_InputStream") public void setReader(InputStream input) throws CDKException
IChemObjectReader
CDKException
@TestMethod(value="testGetFormat") public IResourceFormat getFormat()
IChemObjectIO
IResourceFormat
class for this IO class.@TestMethod(value="testAccepts") public boolean accepts(Class classObject)
IChemObjectIO
IChemObject
can be read or written.classObject
- IChemObject
of which is tested if it can be handled.IChemObject
can be handled.@TestMethod(value="testClose") public void close() throws IOException
IChemObjectIO
IOException
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 input