info.informatica.util.locale
Class FileResourceFactory

java.lang.Object
  extended by info.informatica.util.locale.ResourceFactory
      extended by info.informatica.util.locale.FileResourceFactory

public class FileResourceFactory
extends ResourceFactory

Factory of localized objects through filesystem.

Loads files from filesystem according to basename, extension and locale name.

Author:
amengual at informatica dot info

Constructor Summary
FileResourceFactory()
           
FileResourceFactory(Associator assoc)
           
 
Method Summary
 InputStream loadLocalFile(String baseFileName, String ext, String localeName)
           
 
Methods inherited from class info.informatica.util.locale.ResourceFactory
getLastModified, loadLocalObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResourceFactory

public FileResourceFactory(Associator assoc)

FileResourceFactory

public FileResourceFactory()
Method Detail

loadLocalFile

public InputStream loadLocalFile(String baseFileName,
                                 String ext,
                                 String localeName)
                          throws IOException
Specified by:
loadLocalFile in class ResourceFactory
Parameters:
baseFileName - the basename of the path
ext - the extension.
localeName - the name of the locale, eg. es_ES.
Throws:
IOException