org.apache.excalibur.xmlizer
Class DefaultXMLizer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.xmlizer.DefaultXMLizer
- All Implemented Interfaces:
- Configurable, LogEnabled, Serviceable, ThreadSafe, XMLizer
public final class DefaultXMLizer
- extends AbstractLogEnabled
- implements XMLizer, Serviceable, Configurable, ThreadSafe
Converter for transforming any input stream with a given mime-type
into SAX events.
This component acts like a selector. All XMLizer can "register"
themselfes for a given mime-type and this component forwards
the transformation to the registered on.
- Version:
- CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:34 $
- Author:
- Avalon Development Team
Fields inherited from interface org.apache.excalibur.xmlizer.XMLizer |
ROLE |
Method Summary |
void |
configure(Configuration configuration)
|
void |
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! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultXMLizer
public DefaultXMLizer()
service
public void service(ServiceManager serviceManager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
toSAX
public 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
- Description copied from interface:
XMLizer
- 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!
- Specified by:
toSAX
in interface XMLizer
- Parameters:
stream
- the datamimeType
- the mime-type for the datasystemID
- the URI defining the data (this is optional and can be null)
- Throws:
org.xml.sax.SAXException
java.io.IOException
Copyright © 1997-2011 Apache Software Foundation. All Rights Reserved.