oracle.ide.util
Class LocalizableIniFileFinder
java.lang.Object
|
+--oracle.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:
- {BaseFileName} + _ + {Language} + {Country} + {FileExtension}
- {BaseFileName} + _ + {Language} + {FileExtension}
- {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.
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 |
LocalizableIniFileFinder
public LocalizableIniFileFinder()
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