This project has retired. For details please refer to its
Attic page.
AbstractSerializer (Cocoon Pipeline Implementation 1.0.0 API)
org.apache.cocoon.serialization
Class AbstractSerializer
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.serialization.AbstractSerializer
- All Implemented Interfaces:
- ContentHandler, LexicalHandler, Poolable, Recyclable, org.apache.cocoon.serialization.Serializer, org.apache.cocoon.sitemap.SitemapOutputComponent, XMLConsumer, org.apache.cocoon.xml.XMLConsumer, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer
- Direct Known Subclasses:
- AbstractTextSerializer
- public abstract class AbstractSerializer
- extends AbstractXMLPipe
- implements org.apache.cocoon.serialization.Serializer
- Version:
- $Id: AbstractSerializer.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from interface org.apache.cocoon.serialization.Serializer |
ROLE |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
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, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
output
protected OutputStream output
- The
OutputStream
used by this serializer.
AbstractSerializer
public AbstractSerializer()
setOutputStream
public void setOutputStream(OutputStream out)
throws IOException
- Set the
OutputStream
where the requested resource should
be serialized.
- Specified by:
setOutputStream
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
- Throws:
IOException
getMimeType
public String getMimeType()
- Get the mime-type of the output of this
Serializer
- Specified by:
getMimeType
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
recycle
public void recycle()
- Recycle serializer by removing references
- Specified by:
recycle
in interface Recyclable
- Overrides:
recycle
in class AbstractXMLProducer
shouldSetContentLength
public boolean shouldSetContentLength()
- Test if the component wants to set the content length
- Specified by:
shouldSetContentLength
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.