org.apache.cocoon.components.sax
Class XMLByteStreamFragment

java.lang.Object
  |
  +--org.apache.cocoon.xml.AbstractSAXFragment
        |
        +--org.apache.cocoon.components.sax.XMLByteStreamFragment
All Implemented Interfaces:
XMLFragment, XMLizable

public class XMLByteStreamFragment
extends AbstractSAXFragment

An XMLByteStream wrapped by an XMLFragment implementation. This allows to store SAX events and insert them in an XSP result using <xsp:expr>.

Version:
CVS $Id: XMLByteStreamFragment.java,v 1.4 2002/02/22 07:00:12 cziegeler Exp $
Author:
Sylvain Wallez

Constructor Summary
XMLByteStreamFragment(java.lang.Object bytes)
          Creates a new XMLByteStreamFragment defined by the given XML byte stream.
 
Method Summary
 void toSAX(org.xml.sax.ContentHandler ch)
          Output the fragment.
 
Methods inherited from class org.apache.cocoon.xml.AbstractSAXFragment
toDOM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLByteStreamFragment

public XMLByteStreamFragment(java.lang.Object bytes)
Creates a new XMLByteStreamFragment defined by the given XML byte stream.
Parameters:
bytes - the XML byte stream representing the document fragment
Method Detail

toSAX

public void toSAX(org.xml.sax.ContentHandler ch)
           throws org.xml.sax.SAXException
Output the fragment. If the fragment is a document, start/endDocument events are discarded.


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