public class SimpleSequenceAnnotationParser extends Object implements SequenceAnnotationParser
SequenceAnnotationParser which simply paste the comments into SequenceAnnotation.| Constructor and Description |
|---|
SimpleSequenceAnnotationParser()
The constructor of a
SimpleSequenceAnnotationParser which simply paste the comments into SequenceAnnotation. |
| 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 SimpleSequenceAnnotationParser()
SimpleSequenceAnnotationParser which simply paste the comments into SequenceAnnotation.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)