Package com.optimaize.langdetect.text
Class TextObjectFactoryBuilder
- java.lang.Object
-
- com.optimaize.langdetect.text.TextObjectFactoryBuilder
-
public class TextObjectFactoryBuilder extends java.lang.ObjectBuilder forTextObjectFactory.
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxTextLengthprivate java.util.List<TextFilter>textFilters
-
Constructor Summary
Constructors Constructor Description TextObjectFactoryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextObjectFactorybuild()TextObjectFactoryBuildermaxTextLength(int maxTextLength)TextObjectFactoryBuilderwithTextFilter(TextFilter textFilter)Adds the given TextFilter to be run onTextObject.append(java.io.Reader)methods.
-
-
-
Field Detail
-
maxTextLength
private int maxTextLength
-
textFilters
private final java.util.List<TextFilter> textFilters
-
-
Method Detail
-
maxTextLength
public TextObjectFactoryBuilder maxTextLength(int maxTextLength)
- Parameters:
maxTextLength- 0 for no limit (that's the default).
-
withTextFilter
public TextObjectFactoryBuilder withTextFilter(TextFilter textFilter)
Adds the given TextFilter to be run onTextObject.append(java.io.Reader)methods.Note that the order of filters. may be important. They are executed in the same order as they are passed in here.
-
build
public TextObjectFactory build()
-
-