Package org.daisy.dotify.hyphenator.impl
Class LatexRulesLocator
- java.lang.Object
-
- org.daisy.dotify.hyphenator.impl.LatexRulesLocator
-
public class LatexRulesLocator extends Object
Provides a resource locator for latex rule files.
-
-
Constructor Summary
Constructors Constructor Description LatexRulesLocator()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetProperties(String locale)Returns the properties for the specified locale.URLgetResource(String path)Gets a resource with the specified relative path.Collection<?>listLocales()Lists supported locales.booleansupportsLocale(String locale)Returns true if the specified locale is supported.
-
-
-
Method Detail
-
supportsLocale
public boolean supportsLocale(String locale)
Returns true if the specified locale is supported.- Parameters:
locale- the locale to test- Returns:
- returns true if the locale is supported, false otherwise
-
listLocales
public Collection<?> listLocales()
Lists supported locales.- Returns:
- returns a collection of locales
-
getProperties
public Properties getProperties(String locale)
Returns the properties for the specified locale.- Parameters:
locale- the locale- Returns:
- returns the properties, or null if not found.
-
getResource
public URL getResource(String path) throws FileNotFoundException
Gets a resource with the specified relative path.- Parameters:
path- the path- Returns:
- returns an URL
- Throws:
FileNotFoundException- if the resource cannot be located
-
-