org.apache.cocoon.serialization
Class iTextSerializer
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.serialization.AbstractSerializer
org.apache.cocoon.serialization.iTextSerializer
- All Implemented Interfaces:
- CacheableProcessingComponent, Component, Configurable, ContentHandler, LexicalHandler, LogEnabled, Poolable, Recyclable, Serializer, SitemapOutputComponent, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer
- public final class iTextSerializer
- extends AbstractSerializer
- implements Configurable, CacheableProcessingComponent
- Version:
- CVS $Id: iTextSerializer.java 433543 2006-08-22 06:22:54Z crossley $
- Author:
- Torsten Curdt
| Fields inherited from interface org.apache.cocoon.serialization.Serializer |
ROLE |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iTextSerializer
public iTextSerializer()
configure
public void configure(Configuration conf)
throws ConfigurationException
- Specified by:
configure in interface Configurable
- Throws:
ConfigurationException
getMimeType
public String getMimeType()
- Description copied from class:
AbstractSerializer
- Get the mime-type of the output of this
Serializer
- Specified by:
getMimeType in interface SitemapOutputComponent- Overrides:
getMimeType in class AbstractSerializer
startDocument
public void startDocument()
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the beginning of a document.
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class AbstractXMLPipe
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the end of a document.
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class AbstractXMLPipe
- Throws:
SAXException
setOutputStream
public void setOutputStream(OutputStream out)
- Description copied from class:
AbstractSerializer
- Set the
OutputStream where the requested resource should
be serialized.
- Specified by:
setOutputStream in interface SitemapOutputComponent- Overrides:
setOutputStream in class AbstractSerializer
getKey
public Serializable getKey()
- Description copied from interface:
CacheableProcessingComponent
- Generate the unique key.
This key must be unique inside the space of this component.
This method must be invoked before the getValidity() method.
- Specified by:
getKey in interface CacheableProcessingComponent
- Returns:
- The generated key or
null if the component
is currently not cacheable.
getValidity
public SourceValidity getValidity()
- Description copied from interface:
CacheableProcessingComponent
- Generate the validity object.
Before this method can be invoked the getKey() method
must be invoked.
- Specified by:
getValidity in interface CacheableProcessingComponent
- Returns:
- The generated validity object or
null if the
component is currently not cacheable.
shouldSetContentLength
public boolean shouldSetContentLength()
- Description copied from class:
AbstractSerializer
- Test if the component wants to set the content length
- Specified by:
shouldSetContentLength in interface SitemapOutputComponent- Overrides:
shouldSetContentLength in class AbstractSerializer
Copyright © 1999-2006 The Apache Software Foundation. All Rights Reserved.