Package com.optimaize.langdetect.text
Class TextObjectFactoryBuilder
java.lang.Object
com.optimaize.langdetect.text.TextObjectFactoryBuilder
Builder for
TextObjectFactory
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
maxTextLength
(int maxTextLength) withTextFilter
(TextFilter textFilter) Adds the given TextFilter to be run onTextObject.append(java.io.Reader)
methods.
-
Field Details
-
maxTextLength
private int maxTextLength -
textFilters
-
-
Constructor Details
-
TextObjectFactoryBuilder
public TextObjectFactoryBuilder()
-
-
Method Details
-
maxTextLength
- Parameters:
maxTextLength
- 0 for no limit (that's the default).
-
withTextFilter
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
-