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
SequenceAnnotations that can be used as comment line in a file. |
public static final NullSequenceAnnotationParser DEFAULT_INSTANCE
public void addToAnnotation(String unparsed)
SequenceAnnotationParseraddToAnnotation in interface SequenceAnnotationParserunparsed - the String containing the annotationpublic void clearAnnotation()
SequenceAnnotationParserSequenceAnnotation.clearAnnotation in interface SequenceAnnotationParserpublic SequenceAnnotation[] getCurrentAnnotation()
SequenceAnnotationParserSequenceAnnotation.getCurrentAnnotation in interface SequenceAnnotationParserSequenceAnnotationpublic String parseAnnotationToComment(char commentChar, SequenceAnnotation... annotations)
SequenceAnnotationParserString representation of the given
SequenceAnnotations that can be used as comment line in a file.
SequenceAnnotationParser.addToAnnotation(String).parseAnnotationToComment in interface SequenceAnnotationParsercommentChar - the char at the beginning of comment linesannotations - the SequenceAnnotations to be parsedSequenceAnnotationsDataSet.save(java.io.OutputStream, char, SequenceAnnotationParser)