org.apache.cocoon.reading
Class VirtualPipelineReader
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.sitemap.impl.AbstractVirtualSitemapComponent
org.apache.cocoon.reading.VirtualPipelineReader
- All Implemented Interfaces:
- Configurable, ContentHandler, Contextualizable, LexicalHandler, LogEnabled, Poolable, Reader, Recyclable, Serviceable, SitemapModelComponent, SitemapOutputComponent, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer
- public class VirtualPipelineReader
- extends AbstractVirtualSitemapComponent
- implements Reader
Fields inherited from interface org.apache.cocoon.reading.Reader |
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 |
VirtualPipelineReader
public VirtualPipelineReader()
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.
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface Reader
- Returns:
- the time the read source was last modified or 0 if it is not
possible to detect
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.
generate
public void generate()
throws IOException,
SAXException,
ProcessingException
- Description copied from interface:
Reader
- Generate the response.
- Specified by:
generate
in interface Reader
- Throws:
IOException
SAXException
ProcessingException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.