org.apache.excalibur.xmlizer
Interface XMLizer

All Known Implementing Classes:
DefaultXMLizer

public interface XMLizer

Converter for transforming any input stream with a given mime-type into SAX events.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:34 $
Author:
Avalon Development Team

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 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!
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

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
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!

Parameters:
stream - the data
mimeType - the mime-type for the data
systemID - the URI defining the data (this is optional and can be null)
Throws:
org.xml.sax.SAXException
java.io.IOException


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.