org.apache.cocoon.components.sax
Class XMLByteStreamFragment

java.lang.Object
  extended by org.apache.cocoon.xml.AbstractSAXFragment
      extended by 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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Constructor Summary
XMLByteStreamFragment(Object bytes)
          Creates a new XMLByteStreamFragment defined by the given XML byte stream.
 
Method Summary
 void toSAX(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(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(ContentHandler ch)
           throws SAXException
Output the fragment. If the fragment is a document, start/endDocument events are discarded.

Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.