org.apache.cocoon.components.sax
Class XMLByteStreamInterpreter

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.xml.AbstractXMLProducer
              |
              +--org.apache.cocoon.components.sax.XMLByteStreamInterpreter
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, XMLDeserializer, XMLProducer

public final class XMLByteStreamInterpreter
extends AbstractXMLProducer
implements XMLDeserializer, org.apache.avalon.excalibur.pool.Recyclable

This a simple xml compiler which takes a byte array as input.

Version:
CVS $Id: XMLByteStreamInterpreter.java,v 1.7.2.2 2002/08/26 11:13:36 cziegeler Exp $
Author:
Stefano Mazzocchi, Carsten Ziegeler

Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.components.sax.XMLDeserializer
ROLE
 
Constructor Summary
XMLByteStreamInterpreter()
           
 
Method Summary
 void deserialize(java.lang.Object saxFragment)
          Deserialize the xml data and stream it.
protected  int readEvent()
           
 void recycle()
          Recycle the producer by removing references
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Constructor Detail

XMLByteStreamInterpreter

public XMLByteStreamInterpreter()
Method Detail

recycle

public void recycle()
Description copied from class: AbstractXMLProducer
Recycle the producer by removing references
Specified by:
recycle in interface org.apache.avalon.excalibur.pool.Recyclable
Overrides:
recycle in class AbstractXMLProducer

deserialize

public void deserialize(java.lang.Object saxFragment)
                 throws org.xml.sax.SAXException
Description copied from interface: XMLDeserializer
Deserialize the xml data and stream it.
Specified by:
deserialize in interface XMLDeserializer
Following copied from interface: org.apache.cocoon.components.sax.XMLDeserializer
Parameters:
saxFragment - The xml data.

readEvent

protected int readEvent()
                 throws org.xml.sax.SAXException


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.