public class ExcelWriter extends AbstractWriter
DataEndpoint.State| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CELL_LENGTH |
static int |
MAX_CELL_LENGTH_INDEX |
currentRecordlastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, 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() |
LargeCellHandler |
getLargeCellHandler() |
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 |
setLargeCellHandler(LargeCellHandler largeCellHandler) |
ExcelWriter |
setSheetIndex(int sheetIndex) |
ExcelWriter |
setSheetName(String sheetName) |
ExcelWriter |
setStyleFormat(FieldType fieldType,
String pattern) |
protected void |
writeRecord(Record record) |
isFieldNamesInFirstRow, write, writeImplavailable, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriterdecrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTimepublic static final int MAX_CELL_LENGTH
public static final int MAX_CELL_LENGTH_INDEX
public ExcelWriter(ExcelDocument document)
public DataException addExceptionProperties(DataException exception)
EndpointDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in class AbstractWriterpublic 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 AbstractWriterpublic LargeCellHandler getLargeCellHandler()
public ExcelWriter setLargeCellHandler(LargeCellHandler largeCellHandler)
public ExcelWriter setDescription(String description)
setDescription in class Endpointpublic void open()
DataEndpointopen in class AbstractWriterpublic void close()
DataEndpointclose in class DataEndpointpublic ExcelDocument getDocument()
protected void writeRecord(Record record)
writeRecord in class AbstractWriterpublic ExcelWriter setStyleFormat(FieldType fieldType, String pattern)
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.