org.apache.cocoon.components.sax
Class XMLByteStreamCompiler

java.lang.Object
  extended byorg.apache.cocoon.components.sax.AbstractXMLByteStreamCompiler
      extended byorg.apache.cocoon.components.sax.XMLByteStreamCompiler
All Implemented Interfaces:
ContentHandler, LexicalHandler, XMLByteStreamConstants, XMLConsumer, org.apache.cocoon.xml.XMLConsumer

public final class XMLByteStreamCompiler
extends AbstractXMLByteStreamCompiler

This a simple xml compiler which outputs a byte array. If you want to reuse this instance, make sure to call recycle() inbetween two compilation tasks.

Version:
$Id: XMLByteStreamCompiler.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.sax.XMLByteStreamConstants
CHARACTERS, COMMENT, END_CDATA, END_DOCUMENT, END_DTD, END_ELEMENT, END_ENTITY, END_PREFIX_MAPPING, IGNORABLE_WHITESPACE, LOCATOR, PROCESSING_INSTRUCTION, SKIPPED_ENTITY, START_CDATA, START_DOCUMENT, START_DTD, START_ELEMENT, START_ENTITY, START_PREFIX_MAPPING
 
Constructor Summary
XMLByteStreamCompiler()
           
 
Method Summary
 Object getSAXFragment()
           
 void recycle()
           
protected  void write(int b)
           
 
Methods inherited from class org.apache.cocoon.components.sax.AbstractXMLByteStreamCompiler
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, writeAttributes, writeChars, writeEvent, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLByteStreamCompiler

public XMLByteStreamCompiler()
Method Detail

recycle

public void recycle()
Overrides:
recycle in class AbstractXMLByteStreamCompiler

getSAXFragment

public Object getSAXFragment()

write

protected void write(int b)
Specified by:
write in class AbstractXMLByteStreamCompiler


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