org.apache.derby.iapi.services.i18n
Interface LocaleFinder

All Known Subinterfaces:
Database
All Known Implementing Classes:
BasicDatabase

public interface LocaleFinder

A LocaleFinder gets a Locale and things associated with Locales.


Method Summary
 java.text.RuleBasedCollator getCollator()
          Get a RuleBasedCollator corresponding to the Locale returned by getCurrentLocale().
 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

public java.util.Locale getCurrentLocale()
                                  throws StandardException
Throws:
StandardException - Thrown on error

getCollator

public java.text.RuleBasedCollator getCollator()
                                        throws StandardException
Get a RuleBasedCollator corresponding to the Locale returned by getCurrentLocale().

Throws:
StandardException - Thrown on error

getDateFormat

public 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

public 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

public 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


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.