cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/serialization HSSFSerializer.java
Date Wed, 02 Apr 2003 04:22:18 GMT
crossley    2003/04/01 20:22:18

  Modified:    src/java/org/apache/cocoon/serialization HSSFSerializer.java
  Log:
  Use correct mime-type for Excel. Fix whitespace formatting.
  Submitted by: Joerg Heinicke <joerg.heinicke.at.gmx.de>
  Submitted by: Neil Bacon <nbacon.at.pinnaclesoftware.com.au>
  PR: 18164, 18548
  
  Revision  Changes    Path
  1.2       +53 -60    cocoon-2.0/src/java/org/apache/cocoon/serialization/HSSFSerializer.java
  
  Index: HSSFSerializer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/serialization/HSSFSerializer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HSSFSerializer.java	9 Mar 2003 00:03:14 -0000	1.1
  +++ HSSFSerializer.java	2 Apr 2003 04:22:18 -0000	1.2
  @@ -58,66 +58,59 @@
    *  Serializer to produce an HSSF stream.
    *
    *@author   Marc Johnson (marc_johnson27591@hotmail.com)
  - *@author   Nicola Ken Barozzi (nicolaken@apache.org) 
  + *@author   Nicola Ken Barozzi (nicolaken@apache.org)
    */
  -
  -public class HSSFSerializer
  -      extends POIFSSerializer implements Initializable
  -{
  -  private ElementProcessorFactory _element_processor_factory;
  -  private final static String _mime_type = "vnd.ms-excel";
  -
  -  /**
  -   *  Constructor
  -   */
  -
  -  public HSSFSerializer() {
  -    super();
  -  }
  -
  -  /**
  -   * Initialialize the component. Initialization includes 
  -   * allocating any resources required throughout the 
  -   * components lifecycle.
  -   *
  -   * @exception Exception if an error occurs
  -   */
  -  public void initialize() throws Exception{
  -
  -    _element_processor_factory  = new HSSFElementProcessorFactory();
  -    setupLogger(_element_processor_factory);
  -  }
  -        
  -  /**
  -   *  get the mime type
  -   *
  -   *@return    vnd.ms-excel
  -   */
  -
  -  public String getMimeType() {
  -    return _mime_type;
  -  }
  -
  -  /**
  -   *  get the ElementProcessorFactory
  -   *
  -   *@return    the ElementProcessorFactory
  -   */
  -
  -  protected ElementProcessorFactory getElementProcessorFactory() {
  -    return _element_processor_factory;
  -  }
  -
  -  /**
  -   *  post-processing for endDocument
  -   */
  -
  -  protected void doLocalPostEndDocument() { }
  -
  -  /**
  -   *  pre-processing for endDocument
  -   */
  -
  -  protected void doLocalPreEndDocument() { }
  +public class HSSFSerializer extends POIFSSerializer implements Initializable {
  +    private ElementProcessorFactory _element_processor_factory;
  +    private final static String _mime_type = "application/vnd.ms-excel";
  +
  +    /**
  +     *  Constructor
  +     */
  +    public HSSFSerializer() {
  +        super();
  +    }
  +
  +    /**
  +     * Initialialize the component. Initialization includes
  +     * allocating any resources required throughout the
  +     * components lifecycle.
  +     *
  +     * @exception Exception if an error occurs
  +     */
  +    public void initialize() throws Exception {
  +        _element_processor_factory = new HSSFElementProcessorFactory();
  +        setupLogger(_element_processor_factory);
  +    }
  +
  +    /**
  +     *  get the mime type
  +     *
  +     *@return    application/vnd.ms-excel
  +     */
  +    public String getMimeType() {
  +        return _mime_type;
  +    }
  +
  +    /**
  +     *  get the ElementProcessorFactory
  +     *
  +     *@return    the ElementProcessorFactory
  +     */
  +    protected ElementProcessorFactory getElementProcessorFactory() {
  +        return _element_processor_factory;
  +    }
  +
  +    /**
  +     *  post-processing for endDocument
  +     */
  +    protected void doLocalPostEndDocument() {
  +    }
  +
  +    /**
  +     *  pre-processing for endDocument
  +     */
  +    protected void doLocalPreEndDocument() {
  +    }
   
   }
  
  
  

Mime
View raw message