public class IteratingPCCompoundASNReader extends DefaultIteratingChemObjectReader<IAtomContainer>
PCCompoundASNReader
IChemObjectReader.Mode
Constructor and Description |
---|
IteratingPCCompoundASNReader(InputStream in,
IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundASNReader that can read Molecule from a given InputStream and IChemObjectBuilder.
|
IteratingPCCompoundASNReader(Reader in,
IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundASNReader that can read Molecule from a given Reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this IChemObjectIO's resources.
|
IResourceFormat |
getFormat()
Returns the
IResourceFormat class for this IO class. |
boolean |
hasNext() |
IAtomContainer |
next() |
void |
remove()
File IO generally does not support removing of entries.
|
void |
setReader(InputStream reader)
Sets the InputStream from which this ChemObjectReader should read
the contents.
|
void |
setReader(Reader reader)
Sets the Reader from which this ChemObjectReader should read
the contents.
|
accepts, addChemObjectIOListener, getIOSettings, handleError, handleError, handleError, handleError, removeChemObjectIOListener, setErrorHandler, setReaderMode
public IteratingPCCompoundASNReader(Reader in, IChemObjectBuilder builder)
in
- The Reader to read frompublic IteratingPCCompoundASNReader(InputStream in, IChemObjectBuilder builder)
in
- The input streambuilder
- The builder@TestMethod(value="testGetFormat") public IResourceFormat getFormat()
IChemObjectIO
IResourceFormat
class for this IO class.public boolean hasNext()
public IAtomContainer next()
@TestMethod(value="testClose") public void close() throws IOException
IChemObjectIO
IOException
public void remove()
DefaultIteratingChemObjectReader
remove
in interface Iterator<IAtomContainer>
remove
in class DefaultIteratingChemObjectReader<IAtomContainer>
@TestMethod(value="testSetReader_Reader") public void setReader(Reader reader)
IChemObjectReader
@TestMethod(value="testSetReader_InputStream") public void setReader(InputStream reader)
IChemObjectReader