Extension SDK

oracle.ide.util
Class LocalizableIniFileFinder

java.lang.Object
  extended byoracle.ide.util.LocalizableIniFileFinder

public class LocalizableIniFileFinder
extends java.lang.Object

Localizable File Finder - Used to location files which are NLS sensitive (contain hard coded strings, such as gallery.xml and palette.xml)

Search Order:

  1. {BaseFileName} + _ + {Language} + {Country} + {FileExtension}
  2. {BaseFileName} + _ + {Language} + {FileExtension}
  3. {BaseFileName} + {FileExtension}

The Language and Country are obtained from the current default Locale.

The last entry in the Search Order is the original full filename.


Constructor Summary
LocalizableIniFileFinder()
           
 
Method Summary
static java.lang.String getLocalizedFileName(java.lang.String path, java.lang.String fullname)
          Gets the name of the localized file based on the current locale.
static java.lang.String getLocalizedFileName(java.lang.String path, java.lang.String name, java.lang.String extension)
          Gets the name of the localized file based on the current locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizableIniFileFinder

public LocalizableIniFileFinder()
Method Detail

getLocalizedFileName

public static java.lang.String getLocalizedFileName(java.lang.String path,
                                                    java.lang.String fullname)
Gets the name of the localized file based on the current locale.

Parameters:
path - The path to the location of the desired file.
fullname - The default name of the desired file.
Returns:
The name of the localized file

getLocalizedFileName

public static java.lang.String getLocalizedFileName(java.lang.String path,
                                                    java.lang.String name,
                                                    java.lang.String extension)
Gets the name of the localized file based on the current locale.

Parameters:
path - The path to the location of the desired file.
name - The base name of the file.
extension - The file extension.
Returns:
The name of the localized file

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.