ambit2.core.io
Class RawIteratingWrapper<R extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader>

Package class diagram package RawIteratingWrapper
java.lang.Object
  extended by ambit2.core.io.RawIteratingWrapper<R>
All Implemented Interfaces:
IRawReader<ambit2.base.interfaces.IStructureRecord>, java.util.Iterator, org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.iterator.IIteratingChemObjectReader

public class RawIteratingWrapper<R extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader>
extends java.lang.Object
implements IRawReader<ambit2.base.interfaces.IStructureRecord>


Field Summary
protected  ambit2.base.data.StructureRecord r
           
protected  R reader
           
protected  ambit2.base.data.LiteratureEntry reference
           
protected  MoleculeWriter writer
           
 
Constructor Summary
RawIteratingWrapper(R reader)
           
 
Method Summary
 boolean accepts(java.lang.Class arg0)
           
 void addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
           
 void close()
           
 org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
 org.openscience.cdk.io.setting.IOSetting[] getIOSettings()
           
 ambit2.base.data.LiteratureEntry getReference()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 ambit2.base.interfaces.IStructureRecord nextRecord()
           
 void remove()
           
 void removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
           
 void setReference(ambit2.base.data.LiteratureEntry reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected R extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader

writer

protected MoleculeWriter writer

reference

protected ambit2.base.data.LiteratureEntry reference

r

protected final ambit2.base.data.StructureRecord r
Constructor Detail

RawIteratingWrapper

public RawIteratingWrapper(R reader)
Method Detail

getReference

public ambit2.base.data.LiteratureEntry getReference()

setReference

public void setReference(ambit2.base.data.LiteratureEntry reference)

nextRecord

public ambit2.base.interfaces.IStructureRecord nextRecord()
Specified by:
nextRecord in interface IRawReader<ambit2.base.interfaces.IStructureRecord>

accepts

public boolean accepts(java.lang.Class arg0)
Specified by:
accepts in interface org.openscience.cdk.io.IChemObjectIO

addChemObjectIOListener

public void addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
Specified by:
addChemObjectIOListener in interface org.openscience.cdk.io.IChemObjectIO

close

public void close()
           throws java.io.IOException
Specified by:
close in interface org.openscience.cdk.io.IChemObjectIO
Throws:
java.io.IOException

getFormat

public org.openscience.cdk.io.formats.IResourceFormat getFormat()
Specified by:
getFormat in interface org.openscience.cdk.io.IChemObjectIO

getIOSettings

public org.openscience.cdk.io.setting.IOSetting[] getIOSettings()
Specified by:
getIOSettings in interface org.openscience.cdk.io.IChemObjectIO

removeChemObjectIOListener

public void removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
Specified by:
removeChemObjectIOListener in interface org.openscience.cdk.io.IChemObjectIO

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator