public class IteratingPCSubstancesXMLReader extends DefaultIteratingChemObjectReader<IChemModel>
IChemObjectReader.ModeerrorHandler, mode| Constructor and Description |
|---|
IteratingPCSubstancesXMLReader(InputStream in,
IChemObjectBuilder builder)
Constructs a new IteratingPCSubstancesXMLReader that can read Molecule from a given InputStream and IChemObjectBuilder.
|
IteratingPCSubstancesXMLReader(Reader in,
IChemObjectBuilder builder)
Constructs a new IteratingPCSubstancesXMLReader 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() |
IChemModel |
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, 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, removeChemObjectIOListenerforEachRemainingpublic IteratingPCSubstancesXMLReader(Reader in, IChemObjectBuilder builder) throws IOException, XMLStreamException
in - The input streambuilder - The builderIOException - if there is error in getting the IsotopeFactoryXMLStreamException - an error in reading XMLpublic IteratingPCSubstancesXMLReader(InputStream in, IChemObjectBuilder builder) throws Exception
in - The input streambuilder - The builder. In general, use DefaultChemObjectBuilderException - if there is a problem creating an InputStreamReaderpublic IResourceFormat getFormat()
IChemObjectIOIResourceFormat class for this IO class.public boolean hasNext()
public IChemModel next()
public void close()
throws IOException
IChemObjectIOIOException - when the wrapper IO class cannot be closed.public void remove()
DefaultIteratingChemObjectReaderremove in interface Iterator<IChemModel>remove in class DefaultIteratingChemObjectReader<IChemModel>public void setReader(Reader reader) throws CDKException
IChemObjectReaderCDKExceptionpublic void setReader(InputStream reader) throws CDKException
IChemObjectReaderCDKExceptionCopyright © 2018. All Rights Reserved.