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>
public class IteratingPCCompoundASNReader extends DefaultIteratingChemObjectReader<IAtomContainer>
Iterating PubChem PCCompound ASN reader.- Author:
- Egon Willighagen <egonw@users.sf.net>
- See Also:
PCCompoundASNReader- Source code:
- main
- Belongs to CDK module:
- io
- Keywords:
- file format, ASN, PubChem
- Created on:
- 2008-05-05
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openscience.cdk.io.IChemObjectReader
IChemObjectReader.Mode
-
-
Field Summary
-
Fields inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
errorHandler, mode
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this IChemObjectIO's resources.IResourceFormatgetFormat()Returns theIResourceFormatclass for this IO class.booleanhasNext()IAtomContainernext()voidremove()File IO generally does not support removing of entries.voidsetReader(InputStream reader)Sets the InputStream from which this ChemObjectReader should read the contents.voidsetReader(Reader reader)Sets the Reader from which this ChemObjectReader should read the contents.-
Methods inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
accepts, handleError, handleError, handleError, handleError, setErrorHandler, setReaderMode
-
Methods inherited from class org.openscience.cdk.io.ChemObjectIO
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openscience.cdk.io.IChemObjectIO
addChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
IteratingPCCompoundASNReader
public IteratingPCCompoundASNReader(Reader in, IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundASNReader that can read Molecule from a given Reader.- Parameters:
in- The Reader to read from
-
IteratingPCCompoundASNReader
public IteratingPCCompoundASNReader(InputStream in, IChemObjectBuilder builder)
Constructs a new IteratingPCCompoundASNReader that can read Molecule from a given InputStream and IChemObjectBuilder.- Parameters:
in- The input streambuilder- The builder
-
-
Method Detail
-
getFormat
public IResourceFormat getFormat()
Description copied from interface:IChemObjectIOReturns theIResourceFormatclass for this IO class.
-
hasNext
public boolean hasNext()
-
next
public IAtomContainer next()
-
close
public void close() throws IOExceptionDescription copied from interface:IChemObjectIOCloses this IChemObjectIO's resources.- Throws:
IOException- when the wrapper IO class cannot be closed.
-
remove
public void remove()
Description copied from class:DefaultIteratingChemObjectReaderFile IO generally does not support removing of entries.- Specified by:
removein interfaceIterator<IAtomContainer>- Overrides:
removein classDefaultIteratingChemObjectReader<IAtomContainer>
-
setReader
public void setReader(Reader reader)
Description copied from interface:IChemObjectReaderSets the Reader from which this ChemObjectReader should read the contents.
-
setReader
public void setReader(InputStream reader)
Description copied from interface:IChemObjectReaderSets the InputStream from which this ChemObjectReader should read the contents.
-
-