Class StringInterners
java.lang.Object
opennlp.tools.util.jvm.StringInterners
Provides string interning utility methods. Interning mechanism can be configured via the
system property
opennlp.interner.class by specifying an implementation via its
fully qualified classname. It needs to implement StringInterner.
If not specified by the user, the default interner is CHMStringInterner.
The implementation is loaded via the ExtensionLoader. Custom implementations
must provide a public no-arg constructor and reside in an allowed package,
see ExtensionLoader.registerAllowedPackage(String).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringInternerprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
INTERNER
-
-
Constructor Details
-
StringInterners
public StringInterners()
-
-
Method Details
-
intern
-