com.ibm.tivoli.maximo.export

Interface IExportWriter

  • All Known Implementing Classes:
    CsvExportWriter, ExcelExportWriter


    public interface IExportWriter
    Export interface for exporting data to some format. The format implementation would need to be defined.
    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • beginDocument

        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'
        Parameters:
        name -
        out -
      • endDocument

        void endDocument()
        Called at the end of the process to finalize the document creation
      • beginRow

        void beginRow()
        Called at the start of every row
      • endRow

        void endRow()
        Called at the end of every row
      • emitCell

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

        void emitComma()
        Writes a single comma string value to the output document