com.ibm.tivoli.maximo.export.excel

Class ExcelExportWriter

  • java.lang.Object
    • com.ibm.tivoli.maximo.export.excel.ExcelExportWriter
  • All Implemented Interfaces:
    IExportWriter


    public class ExcelExportWriter
    extends java.lang.Object
    implements IExportWriter
    Excel Export Writer creates an Excel Workbook with a single Sheet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void beginDocument(java.lang.String name, java.io.OutputStream out)
      Called at the start of process to create the output document, which should get written out 'out'
      void beginRow()
      Called at the start of every row
      void emitCell(int cellPos, java.lang.Object val, int maxType, ICellStyle style, IExportContext context)
      Writes a cell's value to the output document
      void emitComma()
      Writes a single comma string value to the output document
      void endDocument()
      Called at the end of the process to finalize the document creation
      void endRow()
      Called at the end of every row
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExcelExportWriter

        public ExcelExportWriter()
      • ExcelExportWriter

        public ExcelExportWriter(java.lang.String type)
      • ExcelExportWriter

        public ExcelExportWriter(java.lang.String type,
                                 java.lang.String dateTimeFormat)
    • Method Detail

      • beginDocument

        public void beginDocument(java.lang.String name,
                                  java.io.OutputStream out)
        Description copied from interface: IExportWriter
        Called at the start of process to create the output document, which should get written out 'out'
        Specified by:
        beginDocument in interface IExportWriter
      • endDocument

        public void endDocument()
        Description copied from interface: IExportWriter
        Called at the end of the process to finalize the document creation
        Specified by:
        endDocument in interface IExportWriter
      • beginRow

        public void beginRow()
        Description copied from interface: IExportWriter
        Called at the start of every row
        Specified by:
        beginRow in interface IExportWriter
      • endRow

        public void endRow()
        Description copied from interface: IExportWriter
        Called at the end of every row
        Specified by:
        endRow in interface IExportWriter
      • emitCell

        public void emitCell(int cellPos,
                             java.lang.Object val,
                             int maxType,
                             ICellStyle style,
                             IExportContext context)
        Description copied from interface: IExportWriter
        Writes a cell's value to the output document
        Specified by:
        emitCell in interface IExportWriter
        Parameters:
        cellPos - Cell postition, starting at 0
        val - Cell value
        maxType - MXFormat type
        style - Style to apply (can be null)
        context - IExportContext context
      • emitComma

        public void emitComma()
        Description copied from interface: IExportWriter
        Writes a single comma string value to the output document
        Specified by:
        emitComma in interface IExportWriter