Remove use of Java 6 feature

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5972 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-06-15 08:07:02 +00:00
parent 646d634f76
commit 2cc5f559ec

View File

@@ -77,26 +77,6 @@ public class RootElementNameMetadataExtracterSelector
extractersByRootElementName = Collections.emptyMap();
}
/**
* Set the SAX parser factory to use to parse the incoming documents. If not set,
* the default system-wide SAX parser factory is used.
*
* @param factoryClassName A {@link SAXParserFactory} class name
*/
public void setSAXParserFactoryClass(String factoryClassName)
{
try
{
saxParserFactory = SAXParserFactory.newInstance(
factoryClassName,
this.getClass().getClassLoader());
}
catch (Throwable e)
{
throw new IllegalArgumentException("Unable to load SAX parser factory from class: " + factoryClassName);
}
}
/**
* Optionally set the mimetypes supported. They must be XML formats that the chosen
* parser will be able to handle.