net.sf.eos.analyzer
Class TextBuilder.SpaceBuilder
java.lang.Object
net.sf.eos.config.Configured
net.sf.eos.analyzer.TextBuilder
net.sf.eos.analyzer.TextBuilder.SpaceBuilder
- All Implemented Interfaces:
- Configurable
- Enclosing class:
- TextBuilder
public static final class TextBuilder.SpaceBuilder
- extends TextBuilder
Simple implementation concats all texts from the tokens delimited
by space (ASCII 0x20).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPACE
public static final String SPACE
TextBuilder.SpaceBuilder
public TextBuilder.SpaceBuilder()
buildText
public CharSequence buildText(List<Token> tokens)
- Description copied from class:
TextBuilder
- Creates a new text from the given token.
- Specified by:
buildText
in class TextBuilder
- Parameters:
tokens
- a list of token. If tokens is null
an exception will raise.
- Returns:
- a new text, never
null
buildText
public CharSequence buildText(Token... tokens)
- Description copied from class:
TextBuilder
- Creates a new text from the given token.
- Specified by:
buildText
in class TextBuilder
- Parameters:
tokens
- a list of token If tokens is null
an exception will raise.
- Returns:
- a new text, never
null
buildText
public CharSequence buildText(CharSequence... seq)
- Description copied from class:
TextBuilder
- Creates a new text from the given
CharSequence
.
- Specified by:
buildText
in class TextBuilder
- Parameters:
seq
- a list of CharSequence
If tokens is
null
an exception will raise.
- Returns:
- a new text, never
null
Copyright © 2008. All Rights Reserved.