Package org.zkoss.util.resource
Interface LabelLocator2
public interface LabelLocator2
A locater used to locate extra resource for
Labels into
an input stream.
Once registered (by Labels.register(LabelLocator2)), the label loader
will invoke locate(java.util.Locale) to locate any extra resource.- Since:
- 5.0.5
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionReturns the encoding charset, or null if it is the same as the system default.Returns the input stream containing the label for the specified locale, or null if not available.
-
Method Details
-
locate
Returns the input stream containing the label for the specified locale, or null if not available.It must be thread-safe.
-
getCharset
String getCharset()Returns the encoding charset, or null if it is the same as the system default.The system default is decided by the library property called org.zkoss.util.label.web.charset. If not specified, UTF-8 is assumed.
-