org.apache.cocoon.serialization
Class VirtualPipelineSerializer

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.xml.AbstractXMLPipe
              extended byorg.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
                  extended byorg.apache.cocoon.serialization.VirtualPipelineSerializer
All Implemented Interfaces:
Configurable, ContentHandler, Contextualizable, LexicalHandler, LogEnabled, Poolable, Recyclable, Serializer, Serviceable, SitemapModelComponent, SitemapOutputComponent, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer

public class VirtualPipelineSerializer
extends AbstractVirtualSitemapComponent
implements Serializer


Field Summary
 
Fields inherited from class org.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
context, manager, resolver
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.serialization.Serializer
ROLE
 
Constructor Summary
VirtualPipelineSerializer()
           
 
Method Summary
 String getMimeType()
          Get the mime-type of the output of this Reader
protected  String getTypeName()
           
 void setOutputStream(OutputStream out)
          Set the OutputStream
 boolean shouldSetContentLength()
          Test if the component wants to set the content length
 void startDocument()
          Process the SAX event.
 
Methods inherited from class org.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
configure, contextualize, getMappedSourceEnvironment, getPipeline, getVPCEnvironment, recycle, service, setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Constructor Detail

VirtualPipelineSerializer

public VirtualPipelineSerializer()
Method Detail

getTypeName

protected String getTypeName()
Specified by:
getTypeName in class AbstractVirtualSitemapComponent

setOutputStream

public void setOutputStream(OutputStream out)
Set the OutputStream

Specified by:
setOutputStream in interface SitemapOutputComponent
Parameters:
out - The OutputStream target for the rendered results.

getMimeType

public String getMimeType()
Get the mime-type of the output of this Reader

Specified by:
getMimeType in interface SitemapOutputComponent
Returns:
the mime-type for the results.

shouldSetContentLength

public boolean shouldSetContentLength()
Test if the component wants to set the content length

Specified by:
shouldSetContentLength in interface SitemapOutputComponent
Returns:
true if the content length needs to be set.

startDocument

public void startDocument()
                   throws SAXException
Process the SAX event. A new document is processed. The internal pipeline is prepared.

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class AbstractXMLPipe
Throws:
SAXException
See Also:
ContentHandler.startDocument()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.