public class ExcelWriter extends AbstractWriter
DataEndpoint.State
currentRecord
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, log, name, TIMESTAMP_FORMAT
Constructor and Description |
---|
ExcelWriter(ExcelDocument document) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException . |
void |
close()
Indicates that this endpoint has finished reading or writing.
|
ExcelDocument |
getDocument() |
int |
getFirstColumnIndex() |
int |
getFirstRowIndex() |
int |
getSheetIndex() |
String |
getSheetName() |
boolean |
isAutofilterColumns() |
boolean |
isAutofitColumns() |
void |
open()
Makes this endpoint ready for reading or writing.
|
ExcelWriter |
setAutoFilterColumns(boolean autoFilterColumns)
Indicates if a row containing a drop-down filter with values from each column should be added above the data rows.
|
ExcelWriter |
setAutofitColumns(boolean autofitColumns)
Indicates if the columns should be expanded to fit the widest value.
|
ExcelWriter |
setDescription(String description) |
ExcelWriter |
setFieldNamesInFirstRow(boolean fieldNamesInFirstRow) |
ExcelWriter |
setFirstColumnIndex(int firstColumnIndex) |
ExcelWriter |
setFirstRowIndex(int firstRowIndex) |
ExcelWriter |
setSheetIndex(int sheetIndex) |
ExcelWriter |
setSheetName(String sheetName) |
ExcelWriter |
setStyleFormat(FieldType fieldType,
String pattern) |
protected void |
writeRecord(Record record) |
isFieldNamesInFirstRow, write, writeImpl
available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime
public ExcelWriter(ExcelDocument document)
public DataException addExceptionProperties(DataException exception)
Endpoint
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class AbstractWriter
public boolean isAutofitColumns()
public ExcelWriter setAutofitColumns(boolean autofitColumns)
public boolean isAutofilterColumns()
public ExcelWriter setAutoFilterColumns(boolean autoFilterColumns)
public String getSheetName()
public ExcelWriter setSheetName(String sheetName)
public int getSheetIndex()
public ExcelWriter setSheetIndex(int sheetIndex)
public int getFirstColumnIndex()
public ExcelWriter setFirstColumnIndex(int firstColumnIndex)
public int getFirstRowIndex()
public ExcelWriter setFirstRowIndex(int firstRowIndex)
public ExcelWriter setFieldNamesInFirstRow(boolean fieldNamesInFirstRow)
setFieldNamesInFirstRow
in class AbstractWriter
public ExcelWriter setDescription(String description)
setDescription
in class Endpoint
public void open()
DataEndpoint
open
in class AbstractWriter
public void close()
DataEndpoint
close
in class DataEndpoint
public ExcelDocument getDocument()
protected void writeRecord(Record record)
writeRecord
in class AbstractWriter
public ExcelWriter setStyleFormat(FieldType fieldType, String pattern)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.