public class InfixStringExtractor extends AbstractStringExtractor
AbstractStringExtractor
that can be seen as a filter.
Each instance only returns an infix instead of the full String
.annotation, FASTA, ignore, ignorePattern, USUALLY
Constructor and Description |
---|
InfixStringExtractor(AbstractStringExtractor se,
int start,
int length)
This constructor creates an instance that uses only a infix of the string returned by
se . |
Modifier and Type | Method and Description |
---|---|
SequenceAnnotation[] |
getCurrentSequenceAnnotations()
|
boolean |
hasMoreElements() |
String |
nextElement() |
getAnnotation
public InfixStringExtractor(AbstractStringExtractor se, int start, int length)
se
.se
- the main AbstractStringExtractor
returned the full String
sstart
- the start position of the infixlength
- the length of the infixpublic boolean hasMoreElements()
public String nextElement()
public SequenceAnnotation[] getCurrentSequenceAnnotations()
AbstractStringExtractor
getCurrentSequenceAnnotations
in class AbstractStringExtractor
SequenceAnnotation
or null
if no SequenceAnnotation
is available.