org.apache.cocoon.serialization
Class HSSFSerializer

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.serialization.ElementProcessorSerializer
              |
              +--org.apache.cocoon.serialization.POIFSSerializer
                    |
                    +--org.apache.cocoon.serialization.HSSFSerializer
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.xml.sax.ContentHandler, org.apache.avalon.framework.activity.Initializable, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.Loggable, Serializer, SitemapOutputComponent, XMLConsumer

public class HSSFSerializer
extends POIFSSerializer
implements org.apache.avalon.framework.activity.Initializable

Serializer to produce an HSSF stream.

Author:
Marc Johnson (marc_johnson27591@hotmail.com), Nicola Ken Barozzi (nicolaken@apache.org)

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
protected  void doLocalPostEndDocument()
          post-processing for endDocument
protected  void doLocalPreEndDocument()
          pre-processing for endDocument
protected  ElementProcessorFactory getElementProcessorFactory()
          get the ElementProcessorFactory
 java.lang.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, compose, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getOutputStream, ignorableWhitespace, processingInstruction, SAXExceptionFactory, SAXExceptionFactory, setDocumentLocator, setOutputStream, shouldSetContentLength, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, 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 java.lang.Exception
Initialialize the component. Initialization includes allocating any resources required throughout the components lifecycle.
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception - if an error occurs

getMimeType

public java.lang.String getMimeType()
get the mime type
Returns:
vnd.ms-excel

getElementProcessorFactory

protected ElementProcessorFactory getElementProcessorFactory()
get the ElementProcessorFactory
Overrides:
getElementProcessorFactory in class ElementProcessorSerializer
Returns:
the ElementProcessorFactory

doLocalPostEndDocument

protected void doLocalPostEndDocument()
post-processing for endDocument
Overrides:
doLocalPostEndDocument in class POIFSSerializer

doLocalPreEndDocument

protected void doLocalPreEndDocument()
pre-processing for endDocument
Overrides:
doLocalPreEndDocument in class POIFSSerializer


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.