net.sf.eos.analyzer
Class TextBuilder.SpaceBuilder

java.lang.Object
  extended by net.sf.eos.config.Configured
      extended by net.sf.eos.analyzer.TextBuilder
          extended by 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).


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.eos.analyzer.TextBuilder
TextBuilder.SpaceBuilder
 
Field Summary
static String SPACE
           
 
Fields inherited from class net.sf.eos.analyzer.TextBuilder
SPACE_BUILDER, TEXT_BUILDER_IMPL_CONFIG_NAME
 
Constructor Summary
TextBuilder.SpaceBuilder()
           
 
Method Summary
 CharSequence buildText(CharSequence... seq)
          Creates a new text from the given CharSequence.
 CharSequence buildText(List<Token> tokens)
          Creates a new text from the given token.
 CharSequence buildText(Token... tokens)
          Creates a new text from the given token.
 
Methods inherited from class net.sf.eos.analyzer.TextBuilder
newInstance
 
Methods inherited from class net.sf.eos.config.Configured
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE

public static final String SPACE
Constructor Detail

TextBuilder.SpaceBuilder

public TextBuilder.SpaceBuilder()
Method Detail

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.