public class SimpleSequenceBuilder extends SequenceBuilderBase
More functionality is offered by SimpleRichSequenceBuilder,
Use of this class is prefered.
SimpleRichSequenceBuilder| Modifier and Type | Field and Description |
|---|---|
static SequenceBuilderFactory |
FACTORY |
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri| Constructor and Description |
|---|
SimpleSequenceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSymbols(Alphabet alpha,
Symbol[] syms,
int pos,
int len)
Notify the listener of symbol data.
|
Sequence |
makeSequence()
Return the Sequence object which has been constructed
by this builder.
|
addFeatureProperty, addProperty, addSequenceProperty, endFeature, endSequence, setName, setURI, startFeature, startSequencepublic static final SequenceBuilderFactory FACTORY
public SimpleSequenceBuilder()
public void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len) throws IllegalAlphabetException
SeqIOListeneraddSymbols in interface SeqIOListeneraddSymbols in class SequenceBuilderBasealpha - The alphabet of the symbol datasyms - An array containing symbolspos - The start offset of valid data within the arraylen - The number of valid symbols in the arrayIllegalAlphabetException - if we can't cope with this
alphabet.public Sequence makeSequence() throws BioException
SequenceBuildermakeSequence in interface SequenceBuildermakeSequence in class SequenceBuilderBaseBioExceptionCopyright © 2014 BioJava. All rights reserved.