Top Description Methods
org.apache.derby.shared.common.i18n

public Interface LocaleFinder

Imports
org.apache.derby.shared.common.error.StandardException, java.util.Locale, java.text.DateFormat

A LocaleFinder gets a Locale and things associated with Locales.

Method Summary

Modifier and TypeMethod and Description
public Locale

Returns:

the current locale
getCurrentLocale
()

public DateFormat

Returns:

the date formatter used for this locale
getDateFormat
()

Get a formatter for formatting dates.

public DateFormat

Returns:

the time formatter used for this locale
getTimeFormat
()

Get a formatter for formatting times.

public DateFormat

Returns:

the timestamp formatter used for this locale
getTimestampFormat
()

Get a formatter for formatting timestamps.

Method Detail

getCurrentLocaleback to summary
public Locale getCurrentLocale() throws StandardException
Returns:Locale

the current locale

Exceptions
StandardException:
Thrown on error
getDateFormatback to summary
public DateFormat getDateFormat() throws StandardException

Get a formatter for formatting dates. The implementation may cache this value, since it never changes for a given Locale.

Returns:DateFormat

the date formatter used for this locale

Exceptions
StandardException:
Thrown on error
getTimeFormatback to summary
public DateFormat getTimeFormat() throws StandardException

Get a formatter for formatting times. The implementation may cache this value, since it never changes for a given Locale.

Returns:DateFormat

the time formatter used for this locale

Exceptions
StandardException:
Thrown on error
getTimestampFormatback to summary
public DateFormat getTimestampFormat() throws StandardException

Get a formatter for formatting timestamps. The implementation may cache this value, since it never changes for a given Locale.

Returns:DateFormat

the timestamp formatter used for this locale

Exceptions
StandardException:
Thrown on error