public class GFF3Parser
extends java.lang.Object
Developed from GFFParser.
| Constructor and Description |
|---|
GFF3Parser() |
| Modifier and Type | Method and Description |
|---|---|
protected GFF3Record |
createRecord(GFF3DocumentHandler handler,
java.util.List aList,
java.lang.String rest,
java.lang.String comment,
Ontology ontology,
Ontology fallBack)
Actually turns a list of tokens, some value string and a comment into a
GFF3Record and informs
handler.
|
GFFErrorHandler |
getErrorHandler()
Find the error handler used by this parser.
|
void |
parse(java.io.BufferedReader bReader,
GFF3DocumentHandler handler,
Ontology ontology)
Informs handler of each line of
gff read from bReader.
|
void |
parse(java.io.BufferedReader bReader,
GFF3DocumentHandler handler,
Ontology ontology,
java.lang.String locator)
Informs handler of each line of
GFF read from bReader
|
protected void |
parseAttribute(java.lang.String attValList,
Annotation anno,
Ontology onto,
Ontology fallBack)
Parse attValList into a
Map of attributes and value lists.
|
void |
setErrorHandler(GFFErrorHandler errors)
Set the error handler used by this parser.
|
public void setErrorHandler(GFFErrorHandler errors)
public GFFErrorHandler getErrorHandler()
public void parse(java.io.BufferedReader bReader,
GFF3DocumentHandler handler,
Ontology ontology)
throws java.io.IOException,
BioException,
ParserException
bReader - the BufferedReader to parsehandler - the GFF3DocumentHandler that will
listen for 'stuff'ontology - an Ontology that all terms should come from - class="type">IOException if for any reason
bReader throws one - class="type">BioException if
handler can not correct a parse errorjava.io.IOExceptionBioExceptionParserExceptionpublic void parse(java.io.BufferedReader bReader,
GFF3DocumentHandler handler,
Ontology ontology,
java.lang.String locator)
throws java.io.IOException,
BioException,
ParserException
bReader - the BufferedReader to parsehandler - the GFF3DocumentHandler that will
listen for 'stuff'ontology - an Ontology that all terms should come from - class="type">IOException if for any reason
bReader throws one - class="type">BioException if
handler can not correct a parse errorjava.io.IOExceptionBioExceptionParserExceptionprotected GFF3Record createRecord(GFF3DocumentHandler handler, java.util.List aList, java.lang.String rest, java.lang.String comment, Ontology ontology, Ontology fallBack) throws BioException, ParserException, IgnoreRecordException
handler - a GFF3DocumentHandler to inform of
any parse errors, and the completed GFF3RecordaList - a List containing the 8 mandatory GFF columnsrest - a String representing the unparsed
attribute-value text, or null if there is nonecomment - a String containing the comment (without the
leading '#' character.ontology - the Ontology to resolve Terms in - class="type">BioException if handler
could not correct a parse errorBioExceptionParserExceptionIgnoreRecordExceptionprotected void parseAttribute(java.lang.String attValList,
Annotation anno,
Ontology onto,
Ontology fallBack)
throws ChangeVetoException
Populates an Annotation instance with Ontology Term keys and string/list values.
attValList - the String to parseChangeVetoException