|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.seq.io.GenbankFormat
public class GenbankFormat
Format reader for GenBank files. Converted from the old style io to
the new by working from EmblLikeFormat.
| Field Summary | |
|---|---|
protected static String |
ACCESSION_TAG
Deprecated. |
protected static String |
AUTHORS_TAG
Deprecated. |
protected static String |
BASE_COUNT_TAG
Deprecated. |
protected static String |
CIRCULAR_TAG
Deprecated. |
protected static String |
COMMENT_TAG
Deprecated. |
protected static String |
COORDINATE_TAG
Deprecated. |
protected static String |
DATE_TAG
Deprecated. |
static String |
DEFAULT
Deprecated. |
protected static String |
DEFINITION_TAG
Deprecated. |
protected static String |
DIVISION_TAG
Deprecated. |
protected static String |
END_SEQUENCE_TAG
Deprecated. |
protected static String |
FEATURE_FLAG
Deprecated. |
protected static String |
FEATURE_LINE_PREFIX
Deprecated. |
protected static String |
FEATURE_TAG
Deprecated. |
protected static String |
GI_TAG
Deprecated. |
protected static String |
JOURNAL_TAG
Deprecated. |
protected static String |
KEYWORDS_TAG
Deprecated. |
protected static String |
LOCUS_TAG
Deprecated. |
protected static String |
MEDLINE_TAG
Deprecated. |
protected static String |
ORGANISM_TAG
Deprecated. |
protected static String |
PUBMED_TAG
Deprecated. |
protected static String |
REF_ACCESSION_TAG
Deprecated. |
protected static String |
REFERENCE_TAG
Deprecated. |
protected static String |
SIZE_TAG
Deprecated. |
protected static String |
SOURCE_TAG
Deprecated. |
protected static String |
START_SEQUENCE_TAG
Deprecated. |
protected static String |
STRAND_NUMBER_TAG
Deprecated. |
protected static String |
TITLE_TAG
Deprecated. |
protected static String |
TYPE_TAG
Deprecated. |
protected static String |
VERSION_TAG
Deprecated. |
| Constructor Summary | |
|---|---|
GenbankFormat()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addParseErrorListener(ParseErrorListener theListener)
Deprecated. Adds a parse error listener to the list of listeners if it isn't already included. |
void |
BadLineParsed(ParseErrorEvent theEvent)
Deprecated. This method determines the behaviour when a bad line is processed. |
String |
getDefaultFormat()
Deprecated. |
boolean |
getElideSymbols()
Deprecated. |
protected void |
notifyParseErrorEvent(ParseErrorEvent theEvent)
Deprecated. Passes the event on to all the listeners registered for ParseErrorEvents. |
boolean |
readSequence(BufferedReader reader,
SymbolTokenization symParser,
SeqIOListener listener)
Deprecated. Reads a sequence from the specified reader using the Symbol parser and Sequence Factory provided. |
void |
removeParseErrorListener(ParseErrorListener theListener)
Deprecated. Removes a parse error listener from the list of listeners if it is included. |
void |
setElideSymbols(boolean elideSymbols)
Deprecated. Use this method to toggle reading of sequence data. |
void |
writeSequence(Sequence seq,
PrintStream os)
Deprecated. writeSequence writes a sequence to the specified
PrintStream, using the default format. |
void |
writeSequence(Sequence seq,
String format,
PrintStream os)
Deprecated. use writeSequence(Sequence seq, PrintStream os) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT
protected static final String LOCUS_TAG
protected static final String SIZE_TAG
protected static final String STRAND_NUMBER_TAG
protected static final String TYPE_TAG
protected static final String CIRCULAR_TAG
protected static final String DIVISION_TAG
protected static final String DATE_TAG
protected static final String ACCESSION_TAG
protected static final String VERSION_TAG
protected static final String GI_TAG
protected static final String KEYWORDS_TAG
protected static final String DEFINITION_TAG
protected static final String SOURCE_TAG
protected static final String ORGANISM_TAG
protected static final String REFERENCE_TAG
protected static final String COORDINATE_TAG
protected static final String REF_ACCESSION_TAG
protected static final String AUTHORS_TAG
protected static final String TITLE_TAG
protected static final String JOURNAL_TAG
protected static final String PUBMED_TAG
protected static final String MEDLINE_TAG
protected static final String COMMENT_TAG
protected static final String FEATURE_TAG
protected static final String BASE_COUNT_TAG
protected static final String FEATURE_FLAG
protected static final String START_SEQUENCE_TAG
protected static final String END_SEQUENCE_TAG
protected static final String FEATURE_LINE_PREFIX
| Constructor Detail |
|---|
public GenbankFormat()
| Method Detail |
|---|
public boolean readSequence(BufferedReader reader,
SymbolTokenization symParser,
SeqIOListener listener)
throws IllegalSymbolException,
IOException,
ParseException
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.
IllegalSymbolException - if it is not possible to
translate character data from the stream into valid BioJava
symbols.
IOException - if an error occurs while reading from the
stream.
ParseException
public void writeSequence(Sequence seq,
PrintStream os)
throws IOException
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.
IOException
public void writeSequence(Sequence seq,
String format,
PrintStream os)
throws IOException
writeSequence 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.
IOException - if an error occurs.public String getDefaultFormat()
getDefaultFormat returns the String identifier for
the default format.
getDefaultFormat in interface SequenceFormatString.public void addParseErrorListener(ParseErrorListener theListener)
addParseErrorListener in interface ParseErrorSourcetheListener - Listener to be added.public void removeParseErrorListener(ParseErrorListener theListener)
removeParseErrorListener in interface ParseErrorSourcetheListener - Listener to be removed.public void BadLineParsed(ParseErrorEvent theEvent)
This method should be overwritten when different behavior is desired.
BadLineParsed in interface ParseErrorListenertheEvent - The event that contains the bad line and token.protected void notifyParseErrorEvent(ParseErrorEvent theEvent)
theEvent - The event to be handed to the listeners.public boolean getElideSymbols()
public void setElideSymbols(boolean elideSymbols)
elideSymbols - set to true if you don't want the sequence data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||