org.apache.excalibur.xmlizer
Class DefaultXMLizer
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.excalibur.xmlizer.DefaultXMLizer
- All Implemented Interfaces:
- Component, Configurable, LogEnabled, Serviceable, ThreadSafe, XMLizer
- public final class DefaultXMLizer
- extends AbstractLogEnabled
- implements XMLizer, Serviceable, Configurable, ThreadSafe, Component
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 |
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
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
ConfigurationException
toSAX
public void toSAX(InputStream stream,
String mimeType,
String systemID,
ContentHandler handler)
throws SAXException,
IOException
- Generates SAX events from the given input stream
- 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)
SAXException
IOException
Copyright © 1997-2004 The Apache Software Foundation. All Rights Reserved.