public class IntegerTokenization extends WordTokenization
SymbolTokenization.TokenTypeAnnotatable.AnnotationForwarderCHARACTER, FIXEDWIDTH, SEPARATED, UNKNOWNANNOTATION| Constructor and Description |
|---|
IntegerTokenization() |
| Modifier and Type | Method and Description |
|---|---|
Symbol |
parseToken(String seq)
Returns the symbol for a single token.
|
String |
tokenizeSymbol(Symbol sym)
Return a token representing a single symbol.
|
getAlphabet, getAnnotation, getTokenType, parseStream, parseString, splitString, tokenizeSymbolListaddChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic IntegerTokenization()
public Symbol parseToken(String seq) throws IllegalSymbolException
SymbolTokenizationThe Symbol will be a member of the alphabet. If the token is not recognized as mapping to a symbol, an exception will be thrown.
seq - the token to retrieve a Symbol forIllegalSymbolException - if there is no Symbol for the tokenpublic String tokenizeSymbol(Symbol sym) throws IllegalSymbolException
SymbolTokenizationsym - The symbolIllegalSymbolException - if the symbol isn't recognized.Copyright © 2020 BioJava. All rights reserved.