[Biojava-l] SymbolParsers in Alphabet

Ren, Zhen zren@amylin.com
Mon, 9 Dec 2002 14:07:51 -0800


Hi, there,

The interface Alphabet has a method
    public SymbolTokenization getTokenization(java.lang.String name) throws BioException

Every alphabet should have a SymbolParser under the name 'token' that uses the symbol token characters to translate a string into a SymbolList. Likewise, there should be a SymbolParser under the name 'name' that uses symbol names to identify symbols.

I'd like to know how I can have these two SymbolParsers under the names 'token' and 'name' incorporated into an alphabet I intend to create by myself.

Thanks a lot.

Zhen