Package org.biojava.bio.seq.io
Class GAMEFormat
java.lang.Object
org.biojava.bio.seq.io.GAMEFormat
- All Implemented Interfaces:
SequenceFormat
A rudimentary read-only GAME 1.2 Format object.
- Author:
- David Huen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.booleanreadSequence(BufferedReader reader, SymbolTokenization symParser, SeqIOListener listener) this version only reads annotations (no symbols)voidwriteSequence(Sequence seq, PrintStream os) writeSequencewrites a sequence to the specified PrintStream, using the default format.voidwriteSequence(Sequence seq, String format, PrintStream os) writeSequencewrites a sequence to the specifiedPrintStream, using the specified format.
-
Field Details
-
DEFAULT
- See Also:
-
-
Constructor Details
-
GAMEFormat
public GAMEFormat()
-
-
Method Details
-
readSequence
public boolean readSequence(BufferedReader reader, SymbolTokenization symParser, SeqIOListener listener) throws IOException this version only reads annotations (no symbols)- Specified by:
readSequencein interfaceSequenceFormat- Parameters:
reader- 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.- Returns:
- a boolean indicating whether or not the stream contains any more sequences.
- Throws:
IOException- if an error occurs while reading from the stream.
-
writeSequence
Description copied from interface:SequenceFormatwriteSequencewrites a sequence to the specified PrintStream, using the default format.- Specified by:
writeSequencein interfaceSequenceFormat- Parameters:
seq- the sequence to write out.os- the printstream to write to.
-
writeSequence
Description copied from interface:SequenceFormatwriteSequencewrites a sequence to the specifiedPrintStream, using the specified format.- Specified by:
writeSequencein interfaceSequenceFormat- Parameters:
seq- aSequenceto write out.format- aStringindicating which sub-format of those available from a particularSequenceFormatimplemention to use when writing.os- aPrintStreamobject.
-
getDefaultFormat
Deprecated.getDefaultFormatreturns the String identifier for the default format.- Specified by:
getDefaultFormatin interfaceSequenceFormat- Returns:
- a
String.
-