ambit2.core.io
Class RawIteratingReader<T>

Package class diagram package RawIteratingReader
java.lang.Object
  extended by org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
      extended by ambit2.core.io.RawIteratingReader<T>
All Implemented Interfaces:
IRawReader<T>, java.util.Iterator, org.openscience.cdk.io.IChemObjectIO, org.openscience.cdk.io.iterator.IIteratingChemObjectReader
Direct Known Subclasses:
RawIteratingMOLReader, RawIteratingSDFReader

public abstract class RawIteratingReader<T>
extends org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
implements IRawReader<T>


Field Summary
protected static ambit2.base.log.AmbitLogger logger
           
protected  java.lang.StringBuffer recordBuffer
           
protected  ambit2.base.data.LiteratureEntry reference
           
 
Constructor Summary
RawIteratingReader(java.io.Reader in)
           
 
Method Summary
 void close()
           
abstract  org.openscience.cdk.io.formats.IResourceFormat getFormat()
           
 ambit2.base.data.LiteratureEntry getReference()
           
 boolean hasNext()
           
abstract  boolean isEndOfRecord(java.lang.String line)
           
 java.lang.Object next()
           
abstract  T nextRecord()
           
 void setReference(ambit2.base.data.LiteratureEntry reference)
           
 
Methods inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
accepts, addChemObjectIOListener, fireFrameRead, fireIOSettingQuestion, getIOSettings, remove, 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
accepts, addChemObjectIOListener, getIOSettings, removeChemObjectIOListener
 
Methods inherited from interface java.util.Iterator
remove
 

Field Detail

logger

protected static ambit2.base.log.AmbitLogger logger

recordBuffer

protected java.lang.StringBuffer recordBuffer

reference

protected ambit2.base.data.LiteratureEntry reference
Constructor Detail

RawIteratingReader

public RawIteratingReader(java.io.Reader in)
Method Detail

getReference

public ambit2.base.data.LiteratureEntry getReference()

setReference

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

getFormat

public abstract org.openscience.cdk.io.formats.IResourceFormat getFormat()
Specified by:
getFormat 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

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

nextRecord

public abstract T nextRecord()
Specified by:
nextRecord in interface IRawReader<T>

isEndOfRecord

public abstract boolean isEndOfRecord(java.lang.String line)