public class SeqIOAdapter extends Object implements SeqIOListener
RichSeqIOAdapter| Constructor and Description |
|---|
SeqIOAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureProperty(Object key,
Object value)
Notify the listener of a feature property.
|
void |
addSequenceProperty(Object key,
Object value)
Notify the listener of a sequence-wide property.
|
void |
addSymbols(Alphabet alpha,
Symbol[] syms,
int start,
int length)
Notify the listener of symbol data.
|
void |
endFeature()
Mark the end of data associated with one specific feature.
|
void |
endSequence()
Notify the listener that processing of the sequence is complete.
|
void |
setName(String name)
Notify the listener that the current sequence is generally known
by a particular name.
|
void |
setURI(String uri)
Notify the listener of a URI identifying the current sequence.
|
void |
startFeature(Feature.Template templ)
Notify the listener that a new feature object is starting.
|
void |
startSequence()
Start the processing of a sequence.
|
public SeqIOAdapter()
public void startSequence() throws ParseException
SeqIOListenerstartSequence in interface SeqIOListenerParseExceptionpublic void endSequence() throws ParseException
SeqIOListenerendSequence in interface SeqIOListenerParseExceptionpublic void setName(String name) throws ParseException
SeqIOListenersetName in interface SeqIOListenername - the String that should be returned by getName for the sequence
being parsedParseExceptionpublic void setURI(String uri) throws ParseException
SeqIOListenersetURI in interface SeqIOListenerParseExceptionpublic void addSymbols(Alphabet alpha, Symbol[] syms, int start, int length) throws IllegalAlphabetException
SeqIOListeneraddSymbols in interface SeqIOListeneralpha - The alphabet of the symbol datasyms - An array containing symbolsstart - The start offset of valid data within the arraylength - The number of valid symbols in the arrayIllegalAlphabetException - if we can't cope with this
alphabet.public void addSequenceProperty(Object key, Object value) throws ParseException
SeqIOListeneraddSequenceProperty in interface SeqIOListenerParseExceptionpublic void startFeature(Feature.Template templ) throws ParseException
SeqIOListenerstartFeature in interface SeqIOListenerParseExceptionpublic void endFeature() throws ParseException
SeqIOListenerendFeature in interface SeqIOListenerParseExceptionpublic void addFeatureProperty(Object key, Object value) throws ParseException
SeqIOListeneraddFeatureProperty in interface SeqIOListenerParseExceptionCopyright © 2020 BioJava. All rights reserved.