public interface HyphenatorFactory
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_HYPHENATION_ACCURACY
Defines hyphenation accuracy on a scale from 1 to 5 (integer):
|
Modifier and Type | Method and Description |
---|---|
Object |
getFeature(String key)
Gets the value of a hyphenation feature.
|
HyphenatorInterface |
newHyphenator(String locale)
Returns a new hyphenator configured for the specified locale.
|
void |
setFeature(String key,
Object value)
Sets the value of a hyphenation feature.
|
static final 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(String locale) throws HyphenatorConfigurationException
locale
- a valid locale for the new hyphenator, as defined by IETF RFC
3066HyphenatorConfigurationException
- if the locale is not supportedObject getFeature(String key)
key
- the feature to get the value forvoid setFeature(String key, Object value) throws HyphenatorConfigurationException
key
- the feature to set the value forvalue
- the value for the featureHyphenatorConfigurationException
- if the feature is not supported