public interface GFFDocumentHandler
This allows the GFF push model to run over large collections of GFF, filter them and access other resources without requiring vast numbers of GFF records to be in memory at any one time.
The stream includes both GFF records and comment lines. A particular handeler may choose to discard either of these.
It is assumed that a particular handler will only be used to listen to a single stream of events in a single thread. Particular implementations may not impose this restriction.
Modifier and Type | Method and Description |
---|---|
void |
commentLine(String comment)
A comment line has been encountered.
|
void |
endDocument()
Indicates that the current GFF document has now ended.
|
void |
recordLine(GFFRecord record)
A record line has been encountered.
|
void |
startDocument(String locator)
Indicates that a new GFF document has been started.
|
void startDocument(String locator)
locator
- A URI for the stream being parsed.void endDocument()
This gives you the chance to flush results, or do calculations if you wish.
void commentLine(String comment)
comment has already had the leading '#
'
removed, and may have had leading-and-trailing whitespace trimmed.
comment
- the comment Stringvoid recordLine(GFFRecord record)
It is already preseneted to you into a GFFRecord object.
record
- the GFFRecord containing all the infoCopyright © 2014 BioJava. All rights reserved.