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
SequenceAnnotation s 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)
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)