public interface HyphenatorFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE_HYPHENATION_ACCURACY
Defines hyphenation accuracy on a scale from 1 to 5 (integer):
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFeature(java.lang.String key)
Gets the value of a hyphenation feature.
|
HyphenatorInterface |
newHyphenator(java.lang.String locale)
Returns a new hyphenator configured for the specified locale.
|
void |
setFeature(java.lang.String key,
java.lang.Object value)
Sets the value of a hyphenation feature.
|
static final java.lang.String FEATURE_HYPHENATION_ACCURACY
Defines hyphenation accuracy on a scale from 1 to 5 (integer):
Not all values must be implemented to support this feature. It is recommended, but not strictly required, that an implementation sends a log message when this feature is set to an unsupported value.
HyphenatorInterface newHyphenator(java.lang.String locale) throws HyphenatorConfigurationException
locale - a valid locale for the new hyphenator, as defined by IETF RFC
3066HyphenatorConfigurationException - if the locale is not supportedjava.lang.Object getFeature(java.lang.String key)
key - the feature to get the value forvoid setFeature(java.lang.String key,
java.lang.Object value)
throws HyphenatorConfigurationException
key - the feature to set the value forvalue - the value for the featureHyphenatorConfigurationException - if the feature is not supported