public final class DefaultXMLizer extends org.apache.avalon.framework.logger.AbstractLogEnabled implements XMLizer, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
m_mimeTypes
Mapping between mime-type and role for a SAXParser handling the mime-type
|
private org.apache.avalon.framework.service.ServiceManager |
m_serviceManager
The service manager
|
| Constructor and Description |
|---|
DefaultXMLizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager) |
void |
toSAX(java.io.InputStream stream,
java.lang.String mimeType,
java.lang.String systemID,
org.xml.sax.ContentHandler handler)
Generates SAX events from the given input stream
NOTE : if the implementation can produce lexical events, care should be taken
that
handler can actually be a
XMLConsumer that accepts such
events or directly implements the LexicalHandler interface! |
private org.apache.avalon.framework.service.ServiceManager m_serviceManager
private java.util.Map m_mimeTypes
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void toSAX(java.io.InputStream stream,
java.lang.String mimeType,
java.lang.String systemID,
org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException,
java.io.IOException
XMLizerhandler can actually be a
XMLConsumer that accepts such
events or directly implements the LexicalHandler interface!