public class LimitedStringExtractor extends AbstractStringExtractor
AbstractStringExtractor
allows to read only a limited amount of data.annotation, FASTA, ignore, ignorePattern, USUALLY
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
SequenceAnnotation[] |
getCurrentSequenceAnnotations()
|
boolean |
hasMoreElements() |
String |
nextElement() |
getAnnotation
public LimitedStringExtractor(AbstractStringExtractor se, int num)
AbstractStringExtractor
and a maximal number of Strings to be read.se
- the underlying AbstractStringExtractor
num
- the maximal number of Strings to be readpublic boolean hasMoreElements()
public String nextElement()
public SequenceAnnotation[] getCurrentSequenceAnnotations()
AbstractStringExtractor
getCurrentSequenceAnnotations
in class AbstractStringExtractor
SequenceAnnotation
or null
if no SequenceAnnotation
is available.