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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Sylvain Wallez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.