Interface LocaleFinder
-
- All Known Subinterfaces:
Database
- All Known Implementing Classes:
BasicDatabase
,SlaveDatabase
public interface LocaleFinder
A LocaleFinder gets a Locale and things associated with Locales.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Locale
getCurrentLocale()
java.text.DateFormat
getDateFormat()
Get a formatter for formatting dates.java.text.DateFormat
getTimeFormat()
Get a formatter for formatting times.java.text.DateFormat
getTimestampFormat()
Get a formatter for formatting timestamps.
-
-
-
Method Detail
-
getCurrentLocale
java.util.Locale getCurrentLocale() throws StandardException
- Throws:
StandardException
- Thrown on error
-
getDateFormat
java.text.DateFormat getDateFormat() throws StandardException
Get a formatter for formatting dates. The implementation may cache this value, since it never changes for a given Locale.- Throws:
StandardException
- Thrown on error
-
getTimeFormat
java.text.DateFormat getTimeFormat() throws StandardException
Get a formatter for formatting times. The implementation may cache this value, since it never changes for a given Locale.- Throws:
StandardException
- Thrown on error
-
getTimestampFormat
java.text.DateFormat getTimestampFormat() throws StandardException
Get a formatter for formatting timestamps. The implementation may cache this value, since it never changes for a given Locale.- Throws:
StandardException
- Thrown on error
-
-