org.strbio.mol
Class PolymerSet.PolymerEnumeration

java.lang.Object
  extended by org.strbio.mol.PolymerSet.PolymerEnumeration
All Implemented Interfaces:
java.util.Enumeration
Enclosing class:
PolymerSet

public static class PolymerSet.PolymerEnumeration
extends java.lang.Object
implements java.util.Enumeration

An enumeration of Polymers, that gets them one by one out of a file.


Constructor Summary
PolymerSet.PolymerEnumeration(java.io.BufferedReader inf, Printf outf, PolymerSet ps)
          create an enumeration on a given file, with a given polymer set.
 
Method Summary
 boolean hasMoreElements()
          Are there any more polymers in the file?
 java.lang.Object nextElement()
          Get the next polymer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolymerSet.PolymerEnumeration

public PolymerSet.PolymerEnumeration(java.io.BufferedReader inf,
                                     Printf outf,
                                     PolymerSet ps)
create an enumeration on a given file, with a given polymer set.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Are there any more polymers in the file?

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
                             throws java.util.NoSuchElementException
Get the next polymer. May return null if there's some problem reading it, even if hasMoreElements() was true.

Specified by:
nextElement in interface java.util.Enumeration
Throws:
java.util.NoSuchElementException