org.apache.cocoon.serialization
Class AbstractSerializer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.serialization.AbstractSerializer
- All Implemented Interfaces:
- Poolable, Recyclable, Component, LogEnabled, Serializer, SitemapOutputComponent, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
- Direct Known Subclasses:
- AbstractTextSerializer, FOPSerializer, iTextSerializer, SWFSerializer, XMidiSerializer, ZipArchiveSerializer
public abstract class AbstractSerializer
- extends AbstractXMLPipe
- implements Serializer
- Version:
- CVS $Id: AbstractSerializer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Pierpaolo Fumagalli
(Apache Software Foundation), Stefano Mazzocchi
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 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 |
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 SitemapOutputComponent
- Throws:
IOException
getMimeType
public String getMimeType()
- Get the mime-type of the output of this
Serializer
- Specified by:
getMimeType
in interface SitemapOutputComponent
- See Also:
AbstractProcessingPipeline.setMimeTypeForSerializer(org.apache.cocoon.environment.Environment)
,
AbstractProcessingPipeline.setMimeTypeForReader(org.apache.cocoon.environment.Environment)
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 SitemapOutputComponent
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.