de.jstacs.io
Class LimitedStringExtractor
java.lang.Object
de.jstacs.io.AbstractStringExtractor
de.jstacs.io.LimitedStringExtractor
- All Implemented Interfaces:
- Enumeration<String>
public class LimitedStringExtractor
- extends AbstractStringExtractor
This AbstractStringExtractor
allows to read only a limited amount of data.
- Author:
- Jens Keilwagen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitedStringExtractor
public LimitedStringExtractor(AbstractStringExtractor se,
int num)
- This constructor creates a new instance based on a given
AbstractStringExtractor
and a maximal number of Strings to be read.
- Parameters:
se
- the underlying AbstractStringExtractor
num
- the maximal number of Strings to be read
hasMoreElements
public boolean hasMoreElements()
nextElement
public String nextElement()
getCurrentSequenceAnnotations
public SequenceAnnotation[] getCurrentSequenceAnnotations()
- Description copied from class:
AbstractStringExtractor
- Returns the
SequenceAnnotation
or null
if no SequenceAnnotation
is available.
- Overrides:
getCurrentSequenceAnnotations
in class AbstractStringExtractor
- Returns:
- the
SequenceAnnotation
or null
if no SequenceAnnotation
is available.