public class CsvSheet extends Object implements org.apache.poi.ss.usermodel.Sheet, Closeable
| Modifier and Type | Field and Description |
|---|---|
org.apache.commons.csv.CSVFormat |
csvFormat
format
|
| Constructor and Description |
|---|
CsvSheet(CsvWorkbook csvWorkbook,
Appendable out) |
| Modifier and Type | Method and Description |
|---|---|
int |
addMergedRegion(org.apache.poi.ss.util.CellRangeAddress region) |
int |
addMergedRegionUnsafe(org.apache.poi.ss.util.CellRangeAddress region) |
void |
addValidationData(org.apache.poi.ss.usermodel.DataValidation dataValidation) |
void |
autoSizeColumn(int column) |
void |
autoSizeColumn(int column,
boolean useMergedCells) |
void |
close() |
org.apache.poi.ss.usermodel.Drawing<?> |
createDrawingPatriarch() |
void |
createFreezePane(int colSplit,
int rowSplit) |
void |
createFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow) |
org.apache.poi.ss.usermodel.Row |
createRow(int rownum) |
void |
createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane) |
void |
flushData() |
org.apache.poi.ss.util.CellAddress |
getActiveCell() |
boolean |
getAutobreaks() |
org.apache.poi.ss.usermodel.Comment |
getCellComment(org.apache.poi.ss.util.CellAddress ref) |
Map<org.apache.poi.ss.util.CellAddress,? extends org.apache.poi.ss.usermodel.Comment> |
getCellComments() |
int[] |
getColumnBreaks() |
int |
getColumnOutlineLevel(int columnIndex) |
org.apache.poi.ss.usermodel.CellStyle |
getColumnStyle(int column) |
int |
getColumnWidth(int columnIndex) |
float |
getColumnWidthInPixels(int columnIndex) |
org.apache.poi.ss.usermodel.DataValidationHelper |
getDataValidationHelper() |
List<? extends org.apache.poi.ss.usermodel.DataValidation> |
getDataValidations() |
int |
getDefaultColumnWidth() |
short |
getDefaultRowHeight() |
float |
getDefaultRowHeightInPoints() |
boolean |
getDisplayGuts() |
org.apache.poi.ss.usermodel.Drawing<?> |
getDrawingPatriarch() |
int |
getFirstRowNum() |
boolean |
getFitToPage() |
org.apache.poi.ss.usermodel.Footer |
getFooter() |
boolean |
getForceFormulaRecalculation() |
org.apache.poi.ss.usermodel.Header |
getHeader() |
boolean |
getHorizontallyCenter() |
org.apache.poi.ss.usermodel.Hyperlink |
getHyperlink(org.apache.poi.ss.util.CellAddress addr) |
org.apache.poi.ss.usermodel.Hyperlink |
getHyperlink(int row,
int column) |
List<? extends org.apache.poi.ss.usermodel.Hyperlink> |
getHyperlinkList() |
int |
getLastRowNum() |
short |
getLeftCol() |
double |
getMargin(short margin) |
org.apache.poi.ss.util.CellRangeAddress |
getMergedRegion(int index) |
List<org.apache.poi.ss.util.CellRangeAddress> |
getMergedRegions() |
int |
getNumMergedRegions() |
org.apache.poi.ss.util.PaneInformation |
getPaneInformation() |
int |
getPhysicalNumberOfRows() |
org.apache.poi.ss.usermodel.PrintSetup |
getPrintSetup() |
boolean |
getProtect() |
org.apache.poi.ss.util.CellRangeAddress |
getRepeatingColumns() |
org.apache.poi.ss.util.CellRangeAddress |
getRepeatingRows() |
org.apache.poi.ss.usermodel.Row |
getRow(int rownum) |
int[] |
getRowBreaks() |
boolean |
getRowSumsBelow() |
boolean |
getRowSumsRight() |
boolean |
getScenarioProtect() |
org.apache.poi.ss.usermodel.SheetConditionalFormatting |
getSheetConditionalFormatting() |
String |
getSheetName() |
short |
getTopRow() |
boolean |
getVerticallyCenter() |
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
void |
groupColumn(int fromColumn,
int toColumn) |
void |
groupRow(int fromRow,
int toRow) |
boolean |
isColumnBroken(int column) |
boolean |
isColumnHidden(int columnIndex) |
boolean |
isDisplayFormulas() |
boolean |
isDisplayGridlines() |
boolean |
isDisplayRowColHeadings() |
boolean |
isDisplayZeros() |
boolean |
isPrintGridlines() |
boolean |
isPrintRowAndColumnHeadings() |
boolean |
isRightToLeft() |
boolean |
isRowBroken(int row) |
boolean |
isSelected() |
Iterator<org.apache.poi.ss.usermodel.Row> |
iterator() |
void |
printData() |
void |
protectSheet(String password) |
org.apache.poi.ss.usermodel.CellRange<? extends org.apache.poi.ss.usermodel.Cell> |
removeArrayFormula(org.apache.poi.ss.usermodel.Cell cell) |
void |
removeColumnBreak(int column) |
void |
removeMergedRegion(int index) |
void |
removeMergedRegions(Collection<Integer> indices) |
void |
removeRow(org.apache.poi.ss.usermodel.Row row) |
void |
removeRowBreak(int row) |
Iterator<org.apache.poi.ss.usermodel.Row> |
rowIterator() |
void |
setActiveCell(org.apache.poi.ss.util.CellAddress address) |
org.apache.poi.ss.usermodel.CellRange<? extends org.apache.poi.ss.usermodel.Cell> |
setArrayFormula(String formula,
org.apache.poi.ss.util.CellRangeAddress range) |
void |
setAutobreaks(boolean value) |
org.apache.poi.ss.usermodel.AutoFilter |
setAutoFilter(org.apache.poi.ss.util.CellRangeAddress range) |
void |
setColumnBreak(int column) |
void |
setColumnGroupCollapsed(int columnNumber,
boolean collapsed) |
void |
setColumnHidden(int columnIndex,
boolean hidden) |
void |
setColumnWidth(int columnIndex,
int width) |
void |
setDefaultColumnStyle(int column,
org.apache.poi.ss.usermodel.CellStyle style) |
void |
setDefaultColumnWidth(int width) |
void |
setDefaultRowHeight(short height) |
void |
setDefaultRowHeightInPoints(float height) |
void |
setDisplayFormulas(boolean show) |
void |
setDisplayGridlines(boolean show) |
void |
setDisplayGuts(boolean value) |
void |
setDisplayRowColHeadings(boolean show) |
void |
setDisplayZeros(boolean value) |
void |
setFitToPage(boolean value) |
void |
setForceFormulaRecalculation(boolean value) |
void |
setHorizontallyCenter(boolean value) |
void |
setMargin(short margin,
double size) |
void |
setPrintGridlines(boolean show) |
void |
setPrintRowAndColumnHeadings(boolean show) |
void |
setRepeatingColumns(org.apache.poi.ss.util.CellRangeAddress columnRangeRef) |
void |
setRepeatingRows(org.apache.poi.ss.util.CellRangeAddress rowRangeRef) |
void |
setRightToLeft(boolean value) |
void |
setRowBreak(int row) |
void |
setRowGroupCollapsed(int row,
boolean collapse) |
void |
setRowSumsBelow(boolean value) |
void |
setRowSumsRight(boolean value) |
void |
setSelected(boolean value) |
void |
setVerticallyCenter(boolean value) |
void |
setZoom(int scale) |
void |
shiftColumns(int startColumn,
int endColumn,
int n) |
void |
shiftRows(int startRow,
int endRow,
int n) |
void |
shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight) |
void |
showInPane(int topRow,
int leftCol) |
void |
ungroupColumn(int fromColumn,
int toColumn) |
void |
ungroupRow(int fromRow,
int toRow) |
void |
validateMergedRegions() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CsvSheet(CsvWorkbook csvWorkbook, Appendable out)
public org.apache.poi.ss.usermodel.Row createRow(int rownum)
createRow in interface org.apache.poi.ss.usermodel.Sheetpublic void removeRow(org.apache.poi.ss.usermodel.Row row)
removeRow in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Row getRow(int rownum)
getRow in interface org.apache.poi.ss.usermodel.Sheetpublic int getPhysicalNumberOfRows()
getPhysicalNumberOfRows in interface org.apache.poi.ss.usermodel.Sheetpublic int getFirstRowNum()
getFirstRowNum in interface org.apache.poi.ss.usermodel.Sheetpublic int getLastRowNum()
getLastRowNum in interface org.apache.poi.ss.usermodel.Sheetpublic void setColumnHidden(int columnIndex,
boolean hidden)
setColumnHidden in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isColumnHidden(int columnIndex)
isColumnHidden in interface org.apache.poi.ss.usermodel.Sheetpublic void setRightToLeft(boolean value)
setRightToLeft in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isRightToLeft()
isRightToLeft in interface org.apache.poi.ss.usermodel.Sheetpublic void setColumnWidth(int columnIndex,
int width)
setColumnWidth in interface org.apache.poi.ss.usermodel.Sheetpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface org.apache.poi.ss.usermodel.Sheetpublic float getColumnWidthInPixels(int columnIndex)
getColumnWidthInPixels in interface org.apache.poi.ss.usermodel.Sheetpublic void setDefaultColumnWidth(int width)
setDefaultColumnWidth in interface org.apache.poi.ss.usermodel.Sheetpublic int getDefaultColumnWidth()
getDefaultColumnWidth in interface org.apache.poi.ss.usermodel.Sheetpublic short getDefaultRowHeight()
getDefaultRowHeight in interface org.apache.poi.ss.usermodel.Sheetpublic float getDefaultRowHeightInPoints()
getDefaultRowHeightInPoints in interface org.apache.poi.ss.usermodel.Sheetpublic void setDefaultRowHeight(short height)
setDefaultRowHeight in interface org.apache.poi.ss.usermodel.Sheetpublic void setDefaultRowHeightInPoints(float height)
setDefaultRowHeightInPoints in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.CellStyle getColumnStyle(int column)
getColumnStyle in interface org.apache.poi.ss.usermodel.Sheetpublic int addMergedRegion(org.apache.poi.ss.util.CellRangeAddress region)
addMergedRegion in interface org.apache.poi.ss.usermodel.Sheetpublic int addMergedRegionUnsafe(org.apache.poi.ss.util.CellRangeAddress region)
addMergedRegionUnsafe in interface org.apache.poi.ss.usermodel.Sheetpublic void validateMergedRegions()
validateMergedRegions in interface org.apache.poi.ss.usermodel.Sheetpublic void setVerticallyCenter(boolean value)
setVerticallyCenter in interface org.apache.poi.ss.usermodel.Sheetpublic void setHorizontallyCenter(boolean value)
setHorizontallyCenter in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getHorizontallyCenter()
getHorizontallyCenter in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getVerticallyCenter()
getVerticallyCenter in interface org.apache.poi.ss.usermodel.Sheetpublic void removeMergedRegion(int index)
removeMergedRegion in interface org.apache.poi.ss.usermodel.Sheetpublic void removeMergedRegions(Collection<Integer> indices)
removeMergedRegions in interface org.apache.poi.ss.usermodel.Sheetpublic int getNumMergedRegions()
getNumMergedRegions in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.util.CellRangeAddress getMergedRegion(int index)
getMergedRegion in interface org.apache.poi.ss.usermodel.Sheetpublic List<org.apache.poi.ss.util.CellRangeAddress> getMergedRegions()
getMergedRegions in interface org.apache.poi.ss.usermodel.Sheetpublic Iterator<org.apache.poi.ss.usermodel.Row> rowIterator()
rowIterator in interface org.apache.poi.ss.usermodel.Sheetpublic void setForceFormulaRecalculation(boolean value)
setForceFormulaRecalculation in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getForceFormulaRecalculation()
getForceFormulaRecalculation in interface org.apache.poi.ss.usermodel.Sheetpublic void setAutobreaks(boolean value)
setAutobreaks in interface org.apache.poi.ss.usermodel.Sheetpublic void setDisplayGuts(boolean value)
setDisplayGuts in interface org.apache.poi.ss.usermodel.Sheetpublic void setDisplayZeros(boolean value)
setDisplayZeros in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isDisplayZeros()
isDisplayZeros in interface org.apache.poi.ss.usermodel.Sheetpublic void setFitToPage(boolean value)
setFitToPage in interface org.apache.poi.ss.usermodel.Sheetpublic void setRowSumsBelow(boolean value)
setRowSumsBelow in interface org.apache.poi.ss.usermodel.Sheetpublic void setRowSumsRight(boolean value)
setRowSumsRight in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getAutobreaks()
getAutobreaks in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getDisplayGuts()
getDisplayGuts in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getFitToPage()
getFitToPage in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getRowSumsBelow()
getRowSumsBelow in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getRowSumsRight()
getRowSumsRight in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isPrintGridlines()
isPrintGridlines in interface org.apache.poi.ss.usermodel.Sheetpublic void setPrintGridlines(boolean show)
setPrintGridlines in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isPrintRowAndColumnHeadings()
isPrintRowAndColumnHeadings in interface org.apache.poi.ss.usermodel.Sheetpublic void setPrintRowAndColumnHeadings(boolean show)
setPrintRowAndColumnHeadings in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.PrintSetup getPrintSetup()
getPrintSetup in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Header getHeader()
getHeader in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Footer getFooter()
getFooter in interface org.apache.poi.ss.usermodel.Sheetpublic void setSelected(boolean value)
setSelected in interface org.apache.poi.ss.usermodel.Sheetpublic double getMargin(short margin)
getMargin in interface org.apache.poi.ss.usermodel.Sheetpublic void setMargin(short margin,
double size)
setMargin in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getProtect()
getProtect in interface org.apache.poi.ss.usermodel.Sheetpublic void protectSheet(String password)
protectSheet in interface org.apache.poi.ss.usermodel.Sheetpublic boolean getScenarioProtect()
getScenarioProtect in interface org.apache.poi.ss.usermodel.Sheetpublic void setZoom(int scale)
setZoom in interface org.apache.poi.ss.usermodel.Sheetpublic short getTopRow()
getTopRow in interface org.apache.poi.ss.usermodel.Sheetpublic short getLeftCol()
getLeftCol in interface org.apache.poi.ss.usermodel.Sheetpublic void showInPane(int topRow,
int leftCol)
showInPane in interface org.apache.poi.ss.usermodel.Sheetpublic void shiftRows(int startRow,
int endRow,
int n)
shiftRows in interface org.apache.poi.ss.usermodel.Sheetpublic void shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight)
shiftRows in interface org.apache.poi.ss.usermodel.Sheetpublic void shiftColumns(int startColumn,
int endColumn,
int n)
shiftColumns in interface org.apache.poi.ss.usermodel.Sheetpublic void createFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow)
createFreezePane in interface org.apache.poi.ss.usermodel.Sheetpublic void createFreezePane(int colSplit,
int rowSplit)
createFreezePane in interface org.apache.poi.ss.usermodel.Sheetpublic void createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane)
createSplitPane in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.util.PaneInformation getPaneInformation()
getPaneInformation in interface org.apache.poi.ss.usermodel.Sheetpublic void setDisplayGridlines(boolean show)
setDisplayGridlines in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isDisplayGridlines()
isDisplayGridlines in interface org.apache.poi.ss.usermodel.Sheetpublic void setDisplayFormulas(boolean show)
setDisplayFormulas in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isDisplayFormulas()
isDisplayFormulas in interface org.apache.poi.ss.usermodel.Sheetpublic void setDisplayRowColHeadings(boolean show)
setDisplayRowColHeadings in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isDisplayRowColHeadings()
isDisplayRowColHeadings in interface org.apache.poi.ss.usermodel.Sheetpublic void setRowBreak(int row)
setRowBreak in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isRowBroken(int row)
isRowBroken in interface org.apache.poi.ss.usermodel.Sheetpublic void removeRowBreak(int row)
removeRowBreak in interface org.apache.poi.ss.usermodel.Sheetpublic int[] getRowBreaks()
getRowBreaks in interface org.apache.poi.ss.usermodel.Sheetpublic int[] getColumnBreaks()
getColumnBreaks in interface org.apache.poi.ss.usermodel.Sheetpublic void setColumnBreak(int column)
setColumnBreak in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isColumnBroken(int column)
isColumnBroken in interface org.apache.poi.ss.usermodel.Sheetpublic void removeColumnBreak(int column)
removeColumnBreak in interface org.apache.poi.ss.usermodel.Sheetpublic void setColumnGroupCollapsed(int columnNumber,
boolean collapsed)
setColumnGroupCollapsed in interface org.apache.poi.ss.usermodel.Sheetpublic void groupColumn(int fromColumn,
int toColumn)
groupColumn in interface org.apache.poi.ss.usermodel.Sheetpublic void ungroupColumn(int fromColumn,
int toColumn)
ungroupColumn in interface org.apache.poi.ss.usermodel.Sheetpublic void groupRow(int fromRow,
int toRow)
groupRow in interface org.apache.poi.ss.usermodel.Sheetpublic void ungroupRow(int fromRow,
int toRow)
ungroupRow in interface org.apache.poi.ss.usermodel.Sheetpublic void setRowGroupCollapsed(int row,
boolean collapse)
setRowGroupCollapsed in interface org.apache.poi.ss.usermodel.Sheetpublic void setDefaultColumnStyle(int column,
org.apache.poi.ss.usermodel.CellStyle style)
setDefaultColumnStyle in interface org.apache.poi.ss.usermodel.Sheetpublic void autoSizeColumn(int column)
autoSizeColumn in interface org.apache.poi.ss.usermodel.Sheetpublic void autoSizeColumn(int column,
boolean useMergedCells)
autoSizeColumn in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Comment getCellComment(org.apache.poi.ss.util.CellAddress ref)
getCellComment in interface org.apache.poi.ss.usermodel.Sheetpublic Map<org.apache.poi.ss.util.CellAddress,? extends org.apache.poi.ss.usermodel.Comment> getCellComments()
getCellComments in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Drawing<?> getDrawingPatriarch()
getDrawingPatriarch in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Drawing<?> createDrawingPatriarch()
createDrawingPatriarch in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Workbook getWorkbook()
getWorkbook in interface org.apache.poi.ss.usermodel.Sheetpublic String getSheetName()
getSheetName in interface org.apache.poi.ss.usermodel.Sheetpublic boolean isSelected()
isSelected in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.CellRange<? extends org.apache.poi.ss.usermodel.Cell> setArrayFormula(String formula, org.apache.poi.ss.util.CellRangeAddress range)
setArrayFormula in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.CellRange<? extends org.apache.poi.ss.usermodel.Cell> removeArrayFormula(org.apache.poi.ss.usermodel.Cell cell)
removeArrayFormula in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.DataValidationHelper getDataValidationHelper()
getDataValidationHelper in interface org.apache.poi.ss.usermodel.Sheetpublic List<? extends org.apache.poi.ss.usermodel.DataValidation> getDataValidations()
getDataValidations in interface org.apache.poi.ss.usermodel.Sheetpublic void addValidationData(org.apache.poi.ss.usermodel.DataValidation dataValidation)
addValidationData in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.AutoFilter setAutoFilter(org.apache.poi.ss.util.CellRangeAddress range)
setAutoFilter in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.SheetConditionalFormatting getSheetConditionalFormatting()
getSheetConditionalFormatting in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.util.CellRangeAddress getRepeatingRows()
getRepeatingRows in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.util.CellRangeAddress getRepeatingColumns()
getRepeatingColumns in interface org.apache.poi.ss.usermodel.Sheetpublic void setRepeatingRows(org.apache.poi.ss.util.CellRangeAddress rowRangeRef)
setRepeatingRows in interface org.apache.poi.ss.usermodel.Sheetpublic void setRepeatingColumns(org.apache.poi.ss.util.CellRangeAddress columnRangeRef)
setRepeatingColumns in interface org.apache.poi.ss.usermodel.Sheetpublic int getColumnOutlineLevel(int columnIndex)
getColumnOutlineLevel in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Hyperlink getHyperlink(int row,
int column)
getHyperlink in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.usermodel.Hyperlink getHyperlink(org.apache.poi.ss.util.CellAddress addr)
getHyperlink in interface org.apache.poi.ss.usermodel.Sheetpublic List<? extends org.apache.poi.ss.usermodel.Hyperlink> getHyperlinkList()
getHyperlinkList in interface org.apache.poi.ss.usermodel.Sheetpublic org.apache.poi.ss.util.CellAddress getActiveCell()
getActiveCell in interface org.apache.poi.ss.usermodel.Sheetpublic void setActiveCell(org.apache.poi.ss.util.CellAddress address)
setActiveCell in interface org.apache.poi.ss.usermodel.Sheetpublic Iterator<org.apache.poi.ss.usermodel.Row> iterator()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void printData()
public void flushData()
Copyright © 2018–2022 Alibaba Group. All rights reserved.