public class GAMEFormat extends java.lang.Object implements SequenceFormat
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT |
| Constructor and Description |
|---|
GAMEFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultFormat()
Deprecated.
|
boolean |
readSequence(java.io.BufferedReader reader,
SymbolTokenization symParser,
SeqIOListener listener)
this version only reads annotations (no symbols)
|
void |
writeSequence(Sequence seq,
java.io.PrintStream os)
writeSequence writes a sequence to the specified
PrintStream, using the default format. |
void |
writeSequence(Sequence seq,
java.lang.String format,
java.io.PrintStream os)
writeSequence writes a sequence to the specified
PrintStream, using the specified format. |
public static final java.lang.String DEFAULT
public boolean readSequence(java.io.BufferedReader reader,
SymbolTokenization symParser,
SeqIOListener listener)
throws java.io.IOException
readSequence in interface SequenceFormatreader - The stream of data to parse.symParser - A SymbolParser defining a mapping from
character data to Symbols.listener - A listener to notify when data is extracted
from the stream.java.io.IOException - if an error occurs while reading from the
stream.public void writeSequence(Sequence seq, java.io.PrintStream os)
SequenceFormatwriteSequence writes a sequence to the specified
PrintStream, using the default format.writeSequence in interface SequenceFormatseq - the sequence to write out.os - the printstream to write to.public void writeSequence(Sequence seq, java.lang.String format, java.io.PrintStream os)
SequenceFormatwriteSequence writes a sequence to the specified
PrintStream, using the specified format.writeSequence in interface SequenceFormatseq - a Sequence to write out.format - a String indicating which sub-format
of those available from a particular
SequenceFormat implemention to use when
writing.os - a PrintStream object.public java.lang.String getDefaultFormat()
getDefaultFormat returns the String identifier for
the default format.getDefaultFormat in interface SequenceFormatString.