Package org.openscience.cdk.io.iterator
Class IteratingPCCompoundASNReader
java.lang.Object
org.openscience.cdk.io.ChemObjectIO
org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader<IAtomContainer>
org.openscience.cdk.io.iterator.IteratingPCCompoundASNReader
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Iterator<IAtomContainer>,- IChemObjectIO,- IChemObjectReader,- IIteratingChemObjectReader<IAtomContainer>
Iterating PubChem PCCompound ASN reader.
- Author:
- Egon Willighagen <egonw@users.sf.net>
- See Also:
- Source code:
- main
- Belongs to CDK module:
- io
- Keywords:
- file format, ASN, PubChem
- Created on:
- 2008-05-05
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.openscience.cdk.io.IChemObjectReaderIChemObjectReader.Mode
- 
Field SummaryFields inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReadererrorHandler, mode
- 
Constructor SummaryConstructorsConstructorDescriptionIteratingPCCompoundASNReader(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.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes this IChemObjectIO's resources.Returns theIResourceFormatclass for this IO class.booleanhasNext()next()voidremove()File IO generally does not support removing of entries.voidsetReader(InputStream reader) Sets the InputStream from which this ChemObjectReader should read the contents.voidSets the Reader from which this ChemObjectReader should read the contents.Methods inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReaderaccepts, handleError, handleError, handleError, handleError, setErrorHandler, setReaderModeMethods inherited from class org.openscience.cdk.io.ChemObjectIOaddChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openscience.cdk.io.IChemObjectIOaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
IteratingPCCompoundASNReaderConstructs a new IteratingPCCompoundASNReader that can read Molecule from a given Reader.- Parameters:
- in- The Reader to read from
 
- 
IteratingPCCompoundASNReaderConstructs a new IteratingPCCompoundASNReader that can read Molecule from a given InputStream and IChemObjectBuilder.- Parameters:
- in- The input stream
- builder- The builder
 
 
- 
- 
Method Details- 
getFormatDescription copied from interface:IChemObjectIOReturns theIResourceFormatclass for this IO class.
- 
hasNextpublic boolean hasNext()
- 
next
- 
closeDescription copied from interface:IChemObjectIOCloses this IChemObjectIO's resources.- Throws:
- IOException- when the wrapper IO class cannot be closed.
 
- 
removepublic void remove()Description copied from class:DefaultIteratingChemObjectReaderFile IO generally does not support removing of entries.- Specified by:
- removein interface- Iterator<IAtomContainer>
- Overrides:
- removein class- DefaultIteratingChemObjectReader<IAtomContainer>
 
- 
setReaderDescription copied from interface:IChemObjectReaderSets the Reader from which this ChemObjectReader should read the contents.
- 
setReaderDescription copied from interface:IChemObjectReaderSets the InputStream from which this ChemObjectReader should read the contents.
 
-