org.apache.cocoon.components.sax
Class XMLByteStreamInterpreter

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.components.sax.XMLByteStreamInterpreter
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, XMLDeserializer, XMLProducer

public final class XMLByteStreamInterpreter
extends AbstractXMLProducer
implements XMLDeserializer

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

Version:
CVS $Id: XMLByteStreamInterpreter.java 433543 2006-08-22 06:22:54Z crossley $
Author:
Stefano Mazzocchi, Carsten Ziegeler, Torsten Curdt

Field Summary
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.components.sax.XMLDeserializer
ROLE
 
Constructor Summary
XMLByteStreamInterpreter()
           
 
Method Summary
 void deserialize(Object saxFragment)
          Deserialize the xml data and stream it.
protected  int readEvent()
           
 void recycle()
          Recycle the producer by removing references, and resetting handlers to null (empty) implementations.
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, 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, and resetting handlers to null (empty) implementations.

Specified by:
recycle in interface Recyclable
Overrides:
recycle in class AbstractXMLProducer

deserialize

public void deserialize(Object saxFragment)
                 throws SAXException
Description copied from interface: XMLDeserializer
Deserialize the xml data and stream it.

Specified by:
deserialize in interface XMLDeserializer
Parameters:
saxFragment - The xml data.
Throws:
SAXException

readEvent

protected int readEvent()
                 throws SAXException
Throws:
SAXException


Copyright ? 1999-2007 The Apache Software Foundation. All Rights Reserved.