|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.seq.io.SequenceBuilderFilter
public class SequenceBuilderFilter
Base-class for builders that pass filtered events onto another builder.
RichSeqIOAdapter| Constructor Summary | |
|---|---|
SequenceBuilderFilter(SequenceBuilder delegate)
Create a new SeqIOFilter that will forward events on to another listener. |
|
| Method Summary | |
|---|---|
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. |
SequenceBuilder |
getDelegate()
Retrieve the delegate that is wrapped. |
Sequence |
makeSequence()
Return the Sequence object which has been constructed by this builder. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceBuilderFilter(SequenceBuilder delegate)
delegate - the SequenceBuilder to wrap| Method Detail |
|---|
public SequenceBuilder getDelegate()
public void startSequence()
throws ParseException
SeqIOListener
startSequence in interface SeqIOListenerParseException
public void endSequence()
throws ParseException
SeqIOListener
endSequence in interface SeqIOListenerParseException
public void setName(String name)
throws ParseException
SeqIOListener
setName in interface SeqIOListenername - the String that should be returned by getName for the sequence
being parsed
ParseException
public void setURI(String uri)
throws ParseException
SeqIOListener
setURI in interface SeqIOListenerParseException
public void addSymbols(Alphabet alpha,
Symbol[] syms,
int start,
int length)
throws IllegalAlphabetException
SeqIOListener
addSymbols 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 array
IllegalAlphabetException - if we can't cope with this
alphabet.
public void addSequenceProperty(Object key,
Object value)
throws ParseException
SeqIOListener
addSequenceProperty in interface SeqIOListenerParseException
public void startFeature(Feature.Template templ)
throws ParseException
SeqIOListener
startFeature in interface SeqIOListenerParseException
public void endFeature()
throws ParseException
SeqIOListener
endFeature in interface SeqIOListenerParseException
public void addFeatureProperty(Object key,
Object value)
throws ParseException
SeqIOListener
addFeatureProperty in interface SeqIOListenerParseException
public Sequence makeSequence()
throws BioException
SequenceBuilder
makeSequence in interface SequenceBuilderBioException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||