* @param ruleFile The rule file path.
*/
protected void loadRules(final String ruleFile)
{
if (ruleFile == null) {
throw new SmooksException("ruleFile not specified.");
}
InputStream ruleStream;
// Get the input stream...
try
{
ruleStream = new URIResourceLocator().getResource(ruleFile);
}
catch (final IOException e)
{
throw new SmooksException("Failed to open rule file '" + ruleFile + "'.", e);
}
Properties rawRuleTable = new Properties();
// Load the rawRuleTable into a Properties instance...
try
{
rawRuleTable.load(ruleStream);
}
catch (final IOException e)
{
throw new SmooksException("Error reading InputStream to rule file '" + ruleFile + "'.", e);
}
finally
{
try
{