|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pf.nls.NLSIniFileLoader
public class NLSIniFileLoader
This loader is capable of reading text values from an NLS-ini file to one or more TextContainer objects.
Constructor Summary | |
---|---|
NLSIniFileLoader()
Initialize the new instance with default values. |
Method Summary | |
---|---|
String |
getDefaultEncoding()
Returns the default encoding that will be used to read text from a file if no explicit encoding was provided. |
TextContainer |
loadText(File file,
Locale locale)
Returns a text container with all texts for the specified locale from the given file. |
TextContainerList |
loadText(File file,
Locale[] locales)
Returns a list of text containers with all texts for the specified locales from the given file. |
TextContainer |
loadText(org.pf.file.FileLocator fileLocator,
Locale locale)
Returns a text container with all texts for the specified locale from the given file. |
TextContainerList |
loadText(org.pf.file.FileLocator fileLocator,
Locale[] locales)
Returns a list of text containers with all texts for the specified locales from the given file. |
TextContainer |
loadText(org.pf.file.FileLocator fileLocator,
String localeName)
Returns a text container with all texts for the specified locale from the given file. |
TextContainerList |
loadText(org.pf.file.FileLocator fileLocator,
String[] localeNames)
Returns a list of text containers with all texts for the specified locales from the given file. |
TextContainer |
loadText(File file,
String localeName)
Returns a text container with all texts for the specified locale from the given file. |
TextContainerList |
loadText(File file,
String[] localeNames)
Returns a list of text containers with all texts for the specified locales from the given file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NLSIniFileLoader()
Method Detail |
---|
public TextContainer loadText(File file, String localeName)
public TextContainer loadText(File file, Locale locale)
public TextContainerList loadText(File file, Locale[] locales)
public TextContainerList loadText(File file, String[] localeNames)
public TextContainer loadText(org.pf.file.FileLocator fileLocator, String localeName)
public TextContainer loadText(org.pf.file.FileLocator fileLocator, Locale locale)
public TextContainerList loadText(org.pf.file.FileLocator fileLocator, Locale[] locales)
public TextContainerList loadText(org.pf.file.FileLocator fileLocator, String[] localeNames)
public String getDefaultEncoding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |