|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.data.sequences.annotation.SimpleSequenceAnnotationParser
public class SimpleSequenceAnnotationParser
This class implements a naive SequenceAnnotationParser
which simply paste the comments into SequenceAnnotation
.
Constructor Summary | |
---|---|
SimpleSequenceAnnotationParser()
The constructor of a SimpleSequenceAnnotationParser which simply paste the comments into SequenceAnnotation . |
Method Summary | |
---|---|
void |
addToAnnotation(String unparsed)
This method adds the unparsed String in some way to
the SequenceAnnotation . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleSequenceAnnotationParser()
SimpleSequenceAnnotationParser
which simply paste the comments into SequenceAnnotation
.
Method Detail |
---|
public void addToAnnotation(String unparsed)
SequenceAnnotationParser
unparsed
String
in some way to
the SequenceAnnotation
.
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 parsed
SequenceAnnotation
sDataSet.save(java.io.OutputStream, char, SequenceAnnotationParser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |