org.geotools.swing.locale
Class PropertiesFileFinder

Object
  extended by PropertiesFileFinder

public class PropertiesFileFinder
extends Object

Searches for properties files in a resource directory within the gt-swing module and records the Locales supported by each file. This is a helper for LocaleUtils.

Normally, the scan(String) method will be responding to a call from outside this class's jar, either directly or indirectly. An example of an indirect outside call is when an application calls a LocaleUtils method which in turn calls the scan method. In this case, the resource directory is searched by scanning the relevant entries in the gt-swing jar.

For completeness, and to aid unit testing, calls from within the swing module are also supported. In this case the resource directory is accessed as a local File object.

Since:
8.0
Author:
Michael Bedward

Constructor Summary
PropertiesFileFinder()
           
 
Method Summary
 List<PropertiesFileInfo> scan(String resourceDir)
          Searches for properties files in the specified resource directory and returns information about each file and the Locales that it supports.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesFileFinder

public PropertiesFileFinder()
Method Detail

scan

public List<PropertiesFileInfo> scan(String resourceDir)
                              throws IOException
Searches for properties files in the specified resource directory and returns information about each file and the Locales that it supports.

Parameters:
resourceDir -
Returns:
Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.