Class SimpleSequenceBuilder

    • Constructor Detail

      • SimpleSequenceBuilder

        public SimpleSequenceBuilder()
    • Method Detail

      • addSymbols

        public void addSymbols​(Alphabet alpha,
                               Symbol[] syms,
                               int pos,
                               int len)
                        throws IllegalAlphabetException
        Description copied from interface: SeqIOListener
        Notify the listener of symbol data. All symbols passed to this method are guarenteed to be contained within the specified alphabet. Generally all calls to a given Listener should have the same alphabet -- if not, the listener implementation is likely to throw an exception
        Specified by:
        addSymbols in interface SeqIOListener
        Specified by:
        addSymbols in class SequenceBuilderBase
        Parameters:
        alpha - The alphabet of the symbol data
        syms - An array containing symbols
        pos - The start offset of valid data within the array
        len - The number of valid symbols in the array
        Throws:
        IllegalAlphabetException - if we can't cope with this alphabet.