org.apache.cocoon.serialization
Class HSSFSerializer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.serialization.ElementProcessorSerializer
          extended by org.apache.cocoon.serialization.POIFSSerializer
              extended by org.apache.cocoon.serialization.HSSFSerializer
All Implemented Interfaces:
Initializable, Component, Configurable, LogEnabled, Serviceable, Serializer, SitemapOutputComponent, XMLConsumer, ContentHandler, LexicalHandler

public class HSSFSerializer
extends POIFSSerializer
implements Initializable, Configurable

Serializer to produce an HSSF stream.

Version:
$Id: HSSFSerializer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marc Johnson (marc_johnson27591@hotmail.com), Nicola Ken Barozzi (nicolaken@apache.org)

Field Summary
 
Fields inherited from class org.apache.cocoon.serialization.ElementProcessorSerializer
manager
 
Fields inherited from interface org.apache.cocoon.serialization.Serializer
ROLE
 
Constructor Summary
HSSFSerializer()
          Constructor
 
Method Summary
 void configure(Configuration conf)
           
protected  void doLocalPostEndDocument()
          post-processing for endDocument
protected  void doLocalPreEndDocument()
          pre-processing for endDocument
protected  ElementProcessorFactory getElementProcessorFactory()
          get the ElementProcessorFactory
 String getMimeType()
          get the mime type
 void initialize()
          Initialialize the component.
 
Methods inherited from class org.apache.cocoon.serialization.POIFSSerializer
doPreInitialization, endDocument, getFilesystem
 
Methods inherited from class org.apache.cocoon.serialization.ElementProcessorSerializer
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getOutputStream, ignorableWhitespace, processingInstruction, SAXExceptionFactory, SAXExceptionFactory, service, setDocumentLocator, setOutputStream, shouldSetContentLength, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
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
 

Constructor Detail

HSSFSerializer

public HSSFSerializer()
Constructor

Method Detail

initialize

public void initialize()
                throws Exception
Initialialize the component. Initialization includes allocating any resources required throughout the components lifecycle.

Specified by:
initialize in interface Initializable
Throws:
Exception - if an error occurs

configure

public void configure(Configuration conf)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

getMimeType

public String getMimeType()
get the mime type

Specified by:
getMimeType in interface SitemapOutputComponent
Returns:
application/vnd.ms-excel
See Also:
AbstractProcessingPipeline.setMimeTypeForSerializer(org.apache.cocoon.environment.Environment), AbstractProcessingPipeline.setMimeTypeForReader(org.apache.cocoon.environment.Environment)

getElementProcessorFactory

protected ElementProcessorFactory getElementProcessorFactory()
get the ElementProcessorFactory

Specified by:
getElementProcessorFactory in class ElementProcessorSerializer
Returns:
the ElementProcessorFactory

doLocalPostEndDocument

protected void doLocalPostEndDocument()
post-processing for endDocument

Specified by:
doLocalPostEndDocument in class POIFSSerializer

doLocalPreEndDocument

protected void doLocalPreEndDocument()
pre-processing for endDocument

Specified by:
doLocalPreEndDocument in class POIFSSerializer


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.