public class SmartSequenceBuilder extends SequenceBuilderBase
More functionality is offered by SimpleRichSequenceBuilder
,
Use of this class is prefered.
Modifier and Type | Field and Description |
---|---|
static SequenceBuilderFactory |
BIT_PACKED |
static SequenceBuilderFactory |
FACTORY |
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri
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, startSequence
public static final SequenceBuilderFactory FACTORY
public static final SequenceBuilderFactory BIT_PACKED
public void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len) throws IllegalAlphabetException
SeqIOListener
addSymbols
in interface SeqIOListener
addSymbols
in class SequenceBuilderBase
alpha
- 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
SequenceBuilder
makeSequence
in interface SequenceBuilder
makeSequence
in class SequenceBuilderBase
BioException
Copyright © 2014 BioJava. All rights reserved.