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() |
getAnnotationpublic LimitedStringExtractor(AbstractStringExtractor se, int num)
AbstractStringExtractor and a maximal number of Strings to be read.se - the underlying AbstractStringExtractornum - the maximal number of Strings to be readpublic boolean hasMoreElements()
public String nextElement()
public SequenceAnnotation[] getCurrentSequenceAnnotations()
AbstractStringExtractorgetCurrentSequenceAnnotations in class AbstractStringExtractorSequenceAnnotation or null if no SequenceAnnotation is available.