org.apache.cocoon.components.sax
Class XMLOutputStreamCompiler

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

public final class XMLOutputStreamCompiler
extends AbstractXMLByteStreamCompiler

This class compiles SAX events to an OutputStream. If you want to reuse this instance, make sure to call recycle(OutputStream) to set a new OutputStream and reset the class inbetween two compilation tasks.

Version:
$Id: XMLOutputStreamCompiler.html 1304258 2012-03-23 10:09:27Z 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
XMLOutputStreamCompiler(OutputStream out)
           
 
Method Summary
 void recycle()
           
 void recycle(OutputStream out)
           
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

XMLOutputStreamCompiler

public XMLOutputStreamCompiler(OutputStream out)
                        throws IOException
Throws:
IOException
Method Detail

recycle

public void recycle(OutputStream out)

recycle

public void recycle()
Overrides:
recycle in class AbstractXMLByteStreamCompiler

write

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


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