Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.services.i18n
Interface LocaleFinder  view LocaleFinder download LocaleFinder.java


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 org.apache.derby.iapi.error.StandardException

getCollator

public java.text.RuleBasedCollator getCollator()
                                        throws org.apache.derby.iapi.error.StandardException
Get a RuleBasedCollator corresponding to the Locale returned by getCurrentLocale().


getDateFormat

public java.text.DateFormat getDateFormat()
                                   throws org.apache.derby.iapi.error.StandardException
Get a formatter for formatting dates. The implementation may cache this value, since it never changes for a given Locale.


getTimeFormat

public java.text.DateFormat getTimeFormat()
                                   throws org.apache.derby.iapi.error.StandardException
Get a formatter for formatting times. The implementation may cache this value, since it never changes for a given Locale.


getTimestampFormat

public java.text.DateFormat getTimestampFormat()
                                        throws org.apache.derby.iapi.error.StandardException
Get a formatter for formatting timestamps. The implementation may cache this value, since it never changes for a given Locale.