com.twitter.common.text.util
Class TokenStreamSerializer.Builder

java.lang.Object
  extended by com.twitter.common.text.util.TokenStreamSerializer.Builder
Enclosing class:
TokenStreamSerializer

public static final class TokenStreamSerializer.Builder
extends Object

Builds an TokenStreamSerializer.


Constructor Summary
TokenStreamSerializer.Builder()
           
 
Method Summary
 TokenStreamSerializer.Builder add(TokenStreamSerializer.AttributeSerializer serializer)
          Adds an AttributeSerializer.
 TokenStreamSerializer build()
          Builds the TokenStreamSerializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenStreamSerializer.Builder

public TokenStreamSerializer.Builder()
Method Detail

add

public TokenStreamSerializer.Builder add(TokenStreamSerializer.AttributeSerializer serializer)
Adds an AttributeSerializer. The order in which the AttributeSerializers are added here is the same order in which they will be called for serializing a Token.


build

public TokenStreamSerializer build()
Builds the TokenStreamSerializer.