Package org.daisy.dotify.hyphenator.impl
Class JHyphenatorFactoryService
- java.lang.Object
-
- org.daisy.dotify.hyphenator.impl.JHyphenatorFactoryService
-
- All Implemented Interfaces:
HyphenatorFactoryService
public class JHyphenatorFactoryService extends Object implements HyphenatorFactoryService
Provides a hyphenator factory service for latex hyphenation rules.
-
-
Constructor Summary
Constructors Constructor Description JHyphenatorFactoryService()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.HyphenatorFactory
newFactory()
Creates a new hyphenator factory.boolean
supportsLocale(String locale)
Returns true if this instance can create instances for the specified locale.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.hyphenator.HyphenatorFactoryService
setCreatedWithSPI
-
-
-
-
Method Detail
-
supportsLocale
public boolean supportsLocale(String locale)
Description copied from interface:HyphenatorFactoryService
Returns true if this instance can create instances for the specified locale.- Specified by:
supportsLocale
in interfaceHyphenatorFactoryService
- Parameters:
locale
- a valid locale as defined by IETF RFC 3066- Returns:
- returns true if the specified locale is supported, false otherwise
-
newFactory
public HyphenatorFactory newFactory()
Description copied from interface:HyphenatorFactoryService
Creates a new hyphenator factory.- Specified by:
newFactory
in interfaceHyphenatorFactoryService
- Returns:
- returns a new hyphenator factory
-
listLocales
public Collection<String> listLocales()
Description copied from interface:HyphenatorFactoryService
Returns a list of supported locales as defined by IETF RFC 3066.- Specified by:
listLocales
in interfaceHyphenatorFactoryService
- Returns:
- returns a list of locales
-
-