Use this class if you need to frequently generate smaller amounts of SAX events, or replay a set of recorded start events immediately.
Both {@link ContentHandler} and {@link LexicalHandler} are supported, the only exception is that thesetDocumentLocator event is not recorded.
@version $Id: SaxBuffer.java 696943 2008-09-19 06:56:50Z reinhard $Compared to XMLByteStreamCompiler, this class is many times faster at sending out the recorded SAX events since it doesn't need to convert between byte and char representations etc. On the other hand, its data structure is more complex then a simple byte array, making XMLByteStreamCompiler better in case the recorded SAX should be stored long-term.
Use this class if you need to frequently generate smaller amounts of SAX events, or replay a set of recorded start events immediately.
Both ContentHandler and LexicalHandler are supported, the only exception is that the setDocumentLocator event is not recorded. @author Apache Cocoon Team @version CVS $Id: SaxBuffer.java,v 1.13 2004/05/06 10:09:03 bruno Exp $
Compared to the old Cocoon.XMLByteStreamCompiler, this class is many times faster at sending out the recorded SAX events since it doesn't need to convert between byte and char representations etc. On the other hand, its data structure is more complex then a simple byte array, making XMLByteStreamCompiler better in case the recorded SAX should be stored long-term.
Use this class if you need to frequently generate smaller amounts of SAX events, or replay a set of recorded start events immediately.
Both {@link ContentHandler} and {@link LexicalHandler} are supported, the onlyexception is that the setDocumentLocator event is not recorded.
@version $Id: SAXBuffer.java 729287 2008-12-24 09:44:56Z cziegeler $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|