public final class NullSequenceAnnotationParser extends Object implements SequenceAnnotationParser
SequenceAnnotationParser
returns always null
as SequenceAnnotation
.
That is it add no SequenceAnnotation
to each Sequence
.
DEFAULT_INSTANCE
.Modifier and Type | Field and Description |
---|---|
static NullSequenceAnnotationParser |
DEFAULT_INSTANCE
The only instance of this class which is publicly available.
|
Modifier and Type | Method and Description |
---|---|
void |
addToAnnotation(String unparsed)
|
void |
clearAnnotation()
This method reset the current
SequenceAnnotation . |
SequenceAnnotation[] |
getCurrentAnnotation()
This method returns the current
SequenceAnnotation . |
String |
parseAnnotationToComment(char commentChar,
SequenceAnnotation... annotations)
This method returns a
String representation of the given
SequenceAnnotation s that can be used as comment line in a file. |
public static final NullSequenceAnnotationParser DEFAULT_INSTANCE
public void addToAnnotation(String unparsed)
SequenceAnnotationParser
addToAnnotation
in interface SequenceAnnotationParser
unparsed
- the String containing the annotationpublic void clearAnnotation()
SequenceAnnotationParser
SequenceAnnotation
.clearAnnotation
in interface SequenceAnnotationParser
public SequenceAnnotation[] getCurrentAnnotation()
SequenceAnnotationParser
SequenceAnnotation
.getCurrentAnnotation
in interface SequenceAnnotationParser
SequenceAnnotation
public String parseAnnotationToComment(char commentChar, SequenceAnnotation... annotations)
SequenceAnnotationParser
String
representation of the given
SequenceAnnotation
s that can be used as comment line in a file.
SequenceAnnotationParser.addToAnnotation(String)
.parseAnnotationToComment
in interface SequenceAnnotationParser
commentChar
- the char at the beginning of comment linesannotations
- the SequenceAnnotation
s to be parsedSequenceAnnotation
sDataSet.save(java.io.OutputStream, char, SequenceAnnotationParser)