public class ExcelExportWriter extends java.lang.Object implements IExportWriter
Constructor and Description |
---|
ExcelExportWriter() |
ExcelExportWriter(java.lang.String type) |
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
|
public ExcelExportWriter()
public ExcelExportWriter(java.lang.String type)
public void beginDocument(java.lang.String name, java.io.OutputStream out)
IExportWriter
beginDocument
in interface IExportWriter
public void endDocument()
IExportWriter
endDocument
in interface IExportWriter
public void beginRow()
IExportWriter
beginRow
in interface IExportWriter
public void endRow()
IExportWriter
endRow
in interface IExportWriter
public void emitCell(int cellPos, java.lang.Object val, int maxType, ICellStyle style, IExportContext context)
IExportWriter
emitCell
in interface IExportWriter
cellPos
- Cell postition, starting at 0val
- Cell valuemaxType
- MXFormat
typestyle
- Style to apply (can be null)context
- IExportContext
contextpublic void emitComma()
IExportWriter
emitComma
in interface IExportWriter