public class IteratingPCCompoundXMLReader extends DefaultIteratingChemObjectReader<IAtomContainer>
PCCompoundASNReader
IChemObjectReader.Mode
errorHandler, mode
Constructor and Description |
---|
IteratingPCCompoundXMLReader(InputStream in,
IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundXLReader that can read Molecule from a given InputStream and IChemObjectBuilder.
|
IteratingPCCompoundXMLReader(Reader in,
IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundXMLReader that can read Molecule from a given Reader and IChemObjectBuilder.
|
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, 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 IteratingPCCompoundXMLReader(Reader in, IChemObjectBuilder builder) throws IOException, XMLStreamException
in
- The input streambuilder
- The builderXMLStreamException
- if there is an error isn setting up the XML parserIOException
public IteratingPCCompoundXMLReader(InputStream in, IChemObjectBuilder builder) throws Exception
in
- The input streambuilder
- The builder. In general, use DefaultChemObjectBuilder
Exception
- if there is a problem creating an InputStreamReaderpublic IResourceFormat getFormat()
IChemObjectIO
IResourceFormat
class for this IO class.public boolean hasNext()
public IAtomContainer next()
public void close() throws IOException
IChemObjectIO
IOException
- when the wrapper IO class cannot be closed.public void remove()
DefaultIteratingChemObjectReader
remove
in interface Iterator<IAtomContainer>
remove
in class DefaultIteratingChemObjectReader<IAtomContainer>
public void setReader(Reader reader) throws CDKException
IChemObjectReader
CDKException
public void setReader(InputStream reader) throws CDKException
IChemObjectReader
CDKException
Copyright © 2017. All Rights Reserved.