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() |
getAnnotationpublic InfixStringExtractor(AbstractStringExtractor se, int start, int length)
se.se - the main AbstractStringExtractor returned the full Stringsstart - the start position of the infixlength - the length of the infixpublic boolean hasMoreElements()
public String nextElement()
public SequenceAnnotation[] getCurrentSequenceAnnotations()
AbstractStringExtractorgetCurrentSequenceAnnotations in class AbstractStringExtractorSequenceAnnotation or null if no SequenceAnnotation is available.