org.apache.hivemind.parse
Class XmlResourceProcessor
java.lang.Object
|
+--org.apache.hivemind.parse.XmlResourceProcessor
- public class XmlResourceProcessor
- extends java.lang.Object
The XmlResourceProcessor processes XML resources
using the
DescriptorParser
which is used as a SAX ContentHandler. The result of
processing a resource
is a ModuleDescriptor
.
- Since:
- 1.1
- Author:
- Knut Wannheden
- See Also:
DescriptorParser
,
ModuleDescriptorProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_resolver
protected ClassResolver _resolver
_errorHandler
protected ErrorHandler _errorHandler
XmlResourceProcessor
public XmlResourceProcessor(ClassResolver resolver,
ErrorHandler errorHandler)
processResource
public ModuleDescriptor processResource(Resource resource)
parseResource
protected ModuleDescriptor parseResource(Resource resource,
javax.xml.parsers.SAXParser parser,
DescriptorParser contentHandler)
throws org.xml.sax.SAXException,
java.io.IOException
- Returns the ModuleDescriptor obtained by parsing the specified Resource using the given
SAXParser and DescriptorParser. Called by
processResource(Resource)
after the
DescriptorParser has been
initialized
. Suitable for
overriding by subclasses.
org.xml.sax.SAXException
java.io.IOException