Package org.biojava.bio.program.xff
XFF is an experimental format, and both the format and the APIs in this package may change in the future.
The main class in this package is XFFFeatureSetHandler
,
which is intended as a content handler for XFF featureSet
elements. By default, this class handles the XFF feature
and strandedFeature
types. Any other feature types
are treated as one of these. It is, however, possible to plug in
additional handlers to cope with sub-types of feature
.
The only detail type recognized is xff:prop
-- all others
are silently ignored. But again, it is easy to plug in extra StAX
handlers for other detail types.
When writing a handler, for a new feature type, you will normally want
to sub-class the existing FeatureHandler
or
StrandedFeatureHanlder
classes.
-
ClassDescriptionSimple interface for filtering SAX/StAX startElement events.Filter elements by local name (not recommended).Filter elements by name and namespace.Filter elements on the existence of a specified attribute.StAX handler for the basic
feature
type of XFF.Handler to the XFF location type.StAX handler for xff:prop detail elements.StAX handler for XFF strandedFeature type.StAX handler which converts and stream of parse events for an XFF featureSet element into BioJava SeqIO events.Factory for StAX content handlers.Common functionality for manipulating XFF.Simple XFF writing code, ripped off from Dazzle 0.08.