Class StackedEntityResolver

java.lang.Object
io.sf.carte.doc.xml.dtd.StackedEntityResolver
All Implemented Interfaces:
EntityResolver, EntityResolver2

public class StackedEntityResolver extends Object implements EntityResolver2
A EntityResolver2 that uses a main resolver and a fallback.

First, it attempts to resolve with the main resolver, if an exception is thrown or null is returned, then the fallback is used.

If the first resolver threw a SAXException and the fallback one returned null, that first exception is thrown, as it may contain relevant information.