org.apache.cocoon.components.sax
Class XMLByteStreamFragment

java.lang.Object
  extended byorg.apache.cocoon.xml.AbstractSAXFragment
      extended byorg.apache.cocoon.components.sax.XMLByteStreamFragment
All Implemented Interfaces:
org.apache.cocoon.xml.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:
$Id: XMLByteStreamFragment.html 1304280 2012-03-23 11:18:01Z ilgrosso $

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-2008 The Apache Software Foundation. All Rights Reserved.