*
*/
public static String [] setAmble (String aFile, String aDefaultFile, String aLocation)
{
ResourceManager theRM = ResourceManager.getInstance ();
String [] theExtensions = new String [] {".wml", ".html"};
String theFileName = new String (aFile);
int theIndex = 0;
//++ 358 MW 2001.07.31
if ((theIndex = aFile.lastIndexOf (".")) != -1)
//-- 358
{
theFileName = theFileName.substring (0, theIndex);
}
String [] retVal = new String [theExtensions.length];
for (int i = 0; i < theExtensions.length; i++)
{
try
{
retVal [i] = theRM.getResourceString (theFileName + theExtensions [i]);
}
catch (ResourceNotFoundException e)
{
File theLocation = new File ((aLocation == null ? "" : aLocation));
File theFile = new File (aLocation, theFileName + theExtensions [i]);