BottomMargin, FooterMargin, HeaderMargin, LeftMargin, PANE_LOWER_LEFT, PANE_LOWER_RIGHT, PANE_UPPER_LEFT, PANE_UPPER_RIGHT, RightMargin, TopMargin| Constructor and Description |
|---|
StreamingSheet(String name,
StreamingSheetReader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
addMergedRegion(CellRangeAddress region)
Update operations are not supported
|
int |
addMergedRegionUnsafe(CellRangeAddress cellRangeAddress)
Update operations are not supported
|
void |
addSharedFormula(String siValue,
SharedFormula sharedFormula) |
void |
addValidationData(DataValidation dataValidation)
Not supported
|
void |
autoSizeColumn(int column)
Update operations are not supported
|
void |
autoSizeColumn(int column,
boolean useMergedCells)
Update operations are not supported
|
Drawing |
createDrawingPatriarch()
Not supported
|
void |
createFreezePane(int colSplit,
int rowSplit)
Not supported
|
void |
createFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow)
Not supported
|
Row |
createRow(int rownum)
Update operations are not supported
|
void |
createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane)
Not supported
|
void |
createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
PaneType activePane)
Not supported
|
CellAddress |
getActiveCell() |
boolean |
getAutobreaks()
Not supported
|
Comment |
getCellComment(CellAddress cellAddress)
Return cell comment at row, column, if one exists.
|
Map<CellAddress,? extends Comment> |
getCellComments()
Returns all cell comments on this sheet.
|
int[] |
getColumnBreaks()
Not supported
|
int |
getColumnOutlineLevel(int columnIndex)
Not supported
|
CellStyle |
getColumnStyle(int column)
Not supported
|
int |
getColumnWidth(int columnIndex) |
float |
getColumnWidthInPixels(int columnIndex) |
DataValidationHelper |
getDataValidationHelper()
Not supported
|
List<? extends DataValidation> |
getDataValidations()
Not supported
|
int |
getDefaultColumnWidth()
Get the default column width for the sheet (if the columns do not define their own width) in
characters.
|
short |
getDefaultRowHeight()
Get the default row height for the sheet (if the rows do not define their own height) in
twips (1/20 of a point)
|
float |
getDefaultRowHeightInPoints()
Get the default row height for the sheet measured in point size (if the rows do not define their own height).
|
boolean |
getDisplayGuts()
Not supported
|
Drawing<?> |
getDrawingPatriarch()
Return the sheet's existing drawing, or null if there isn't yet one.
|
int |
getFirstRowNum()
Gets the first row on the sheet.
|
boolean |
getFitToPage()
Not supported
|
Footer |
getFooter()
Not supported
|
boolean |
getForceFormulaRecalculation()
Not supported
|
Header |
getHeader()
Not supported
|
boolean |
getHorizontallyCenter()
Not supported
|
Hyperlink |
getHyperlink(CellAddress cellAddress)
Get hyperlink associated with cell (only if feature is enabled on the Builder).
|
Hyperlink |
getHyperlink(int row,
int column)
Get a Hyperlink in this sheet anchored at row, column (only if feature is enabled on the Builder).
|
List<? extends Hyperlink> |
getHyperlinkList()
Get hyperlinks associated with sheet (only if feature is enabled on the Builder).
|
int |
getLastRowNum()
Gets the last row on the sheet.
|
short |
getLeftCol()
Not supported
|
double |
getMargin(PageMargin margin)
Not supported
|
double |
getMargin(short margin)
Not supported
|
CellRangeAddress |
getMergedRegion(int index)
Only works after sheet is fully read (because merged regions data is stored
at the end of the sheet XML).
|
List<CellRangeAddress> |
getMergedRegions()
Only works after sheet is fully read (because merged regions data is stored
at the end of the sheet XML).
|
int |
getNumMergedRegions()
Only works after sheet is fully read (because merged regions data is stored
at the end of the sheet XML).
|
PaneInformation |
getPaneInformation() |
int |
getPhysicalNumberOfRows()
Not supported - use
iterator() or rowIterator() to iterate over rows
and count the rows |
PrintSetup |
getPrintSetup()
Not supported
|
boolean |
getProtect()
Not supported
|
CellRangeAddress |
getRepeatingColumns()
Not supported
|
CellRangeAddress |
getRepeatingRows()
Not supported
|
Row |
getRow(int rownum)
Not supported - use
iterator() or rowIterator() instead |
int[] |
getRowBreaks()
Not supported
|
boolean |
getRowSumsBelow()
Not supported
|
boolean |
getRowSumsRight()
Not supported
|
boolean |
getScenarioProtect()
Not supported
|
Map<String,SharedFormula> |
getSharedFormulaMap() |
SheetConditionalFormatting |
getSheetConditionalFormatting()
Not supported
|
String |
getSheetName() |
short |
getTopRow()
Not supported
|
boolean |
getVerticallyCenter()
Not supported
|
Workbook |
getWorkbook()
Workbook is only set under certain usage flows.
|
void |
groupColumn(int fromColumn,
int toColumn)
Update operations are not supported
|
void |
groupRow(int fromRow,
int toRow)
Update operations are not supported
|
boolean |
isColumnBroken(int column)
Not supported
|
boolean |
isColumnHidden(int columnIndex)
Get the hidden state for a given column
|
boolean |
isDisplayFormulas()
Not supported
|
boolean |
isDisplayGridlines()
Not supported
|
boolean |
isDisplayRowColHeadings()
Not supported
|
boolean |
isDisplayZeros()
Not supported
|
boolean |
isPrintGridlines()
Not supported
|
boolean |
isPrintRowAndColumnHeadings()
Not supported
|
boolean |
isRightToLeft()
Not supported
|
boolean |
isRowBroken(int row)
Not supported
|
boolean |
isSelected()
Not supported
|
CloseableIterator<Row> |
iterator()
Alias for
rowIterator() to allow foreach loops |
void |
protectSheet(String password)
Not supported
|
CellRange<? extends Cell> |
removeArrayFormula(Cell cell)
Update operations are not supported
|
void |
removeColumnBreak(int column)
Update operations are not supported
|
void |
removeMergedRegion(int index)
Update operations are not supported
|
void |
removeMergedRegions(Collection<Integer> collection)
Update operations are not supported
|
void |
removeRow(Row row)
Update operations are not supported
|
void |
removeRowBreak(int row)
Update operations are not supported
|
SharedFormula |
removeSharedFormula(String siValue) |
CloseableIterator<Row> |
rowIterator()
Returns a new iterator of the physical rows.
|
void |
setActiveCell(CellAddress cellAddress)
Not supported
|
CellRange<? extends Cell> |
setArrayFormula(String formula,
CellRangeAddress range)
Update operations are not supported
|
void |
setAutobreaks(boolean value)
Update operations are not supported
|
AutoFilter |
setAutoFilter(CellRangeAddress range)
Update operations are not supported
|
void |
setColumnBreak(int column)
Update operations are not supported
|
void |
setColumnGroupCollapsed(int columnNumber,
boolean collapsed)
Update operations are not supported
|
void |
setColumnHidden(int columnIndex,
boolean hidden)
Update operations are not supported
|
void |
setColumnWidth(int columnIndex,
int width)
Update operations are not supported
|
void |
setDefaultColumnStyle(int column,
CellStyle style)
Update operations are not supported
|
void |
setDefaultColumnWidth(int width)
Update operations are not supported
|
void |
setDefaultRowHeight(short height)
Update operations are not supported
|
void |
setDefaultRowHeightInPoints(float height)
Update operations are not supported
|
void |
setDisplayFormulas(boolean show)
Update operations are not supported
|
void |
setDisplayGridlines(boolean show)
Update operations are not supported
|
void |
setDisplayGuts(boolean value)
Update operations are not supported
|
void |
setDisplayRowColHeadings(boolean show)
Update operations are not supported
|
void |
setDisplayZeros(boolean value)
Update operations are not supported
|
void |
setFitToPage(boolean value)
Update operations are not supported
|
void |
setForceFormulaRecalculation(boolean value)
Update operations are not supported
|
void |
setHorizontallyCenter(boolean value)
Update operations are not supported
|
void |
setMargin(PageMargin margin,
double size)
Update operations are not supported
|
void |
setMargin(short margin,
double size)
Update operations are not supported
|
void |
setPrintGridlines(boolean show)
Not supported
|
void |
setPrintRowAndColumnHeadings(boolean b)
Update operations are not supported
|
void |
setRepeatingColumns(CellRangeAddress columnRangeRef)
Update operations are not supported
|
void |
setRepeatingRows(CellRangeAddress rowRangeRef)
Update operations are not supported
|
void |
setRightToLeft(boolean value)
Update operations are not supported
|
void |
setRowBreak(int row)
Update operations are not supported
|
void |
setRowGroupCollapsed(int row,
boolean collapse)
Update operations are not supported
|
void |
setRowSumsBelow(boolean value)
Update operations are not supported
|
void |
setRowSumsRight(boolean value)
Update operations are not supported
|
void |
setSelected(boolean value)
Update operations are not supported
|
void |
setVerticallyCenter(boolean value)
Update operations are not supported
|
void |
setZoom(int i)
Update operations are not supported
|
void |
shiftColumns(int startColumn,
int endColumn,
int n)
Update operations are not supported
|
void |
shiftRows(int startRow,
int endRow,
int n)
Update operations are not supported
|
void |
shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight)
Update operations are not supported
|
void |
showInPane(int toprow,
int leftcol)
Not supported
|
Spliterator<Row> |
spliterator() |
void |
ungroupColumn(int fromColumn,
int toColumn)
Update operations are not supported
|
void |
ungroupRow(int fromRow,
int toRow)
Update operations are not supported
|
void |
validateMergedRegions()
Not supported
|
public StreamingSheet(String name, StreamingSheetReader reader)
public Workbook getWorkbook()
getWorkbook in interface Sheetpublic CloseableIterator<Row> iterator()
rowIterator() to allow foreach loopspublic CloseableIterator<Row> rowIterator()
rowIterator in interface SheetCloseableIterator -
it is recommended that you close the iterator when finished with it if you intend to keep the sheet open.public Spliterator<Row> spliterator()
spliterator in interface Iterable<Row>spliterator in interface Sheetpublic String getSheetName()
getSheetName in interface Sheetpublic boolean isColumnHidden(int columnIndex)
isColumnHidden in interface SheetcolumnIndex - - the column to set (0-based)false if the column is visiblepublic int getFirstRowNum()
getFirstRowNum in interface Sheetpublic int getLastRowNum()
getLastRowNum in interface Sheetpublic Comment getCellComment(CellAddress cellAddress)
getCellComment in interface SheetcellAddress - the location of the cell commentIllegalStateException - if StreamingReader.Builder.setReadComments(boolean) is not set to truepublic Map<CellAddress,? extends Comment> getCellComments()
getCellComments in interface SheetIllegalStateException - if StreamingReader.Builder.setReadComments(boolean) is not set to truepublic CellRangeAddress getMergedRegion(int index) throws NoSuchElementException
getMergedRegion in interface Sheetindex - the index of the merged region to retrieveNoSuchElementException - if the index argument is not a valid indexpublic List<CellRangeAddress> getMergedRegions()
getMergedRegions in interface Sheetpublic int getNumMergedRegions()
getNumMergedRegions in interface Sheetpublic Drawing<?> getDrawingPatriarch()
getDrawingPatriarch in interface SheetIllegalStateException - if StreamingReader.Builder.setReadShapes(boolean) is not set to truepublic Hyperlink getHyperlink(int row, int column)
getHyperlink in interface Sheetrow - The row where the hyperlink is anchoredcolumn - The column where the hyperlink is anchoredIllegalStateException - if StreamingReader.Builder.setReadHyperlinks(boolean) is not set to truepublic Hyperlink getHyperlink(CellAddress cellAddress)
getHyperlink in interface SheetcellAddress - the location of the cellIllegalStateException - if StreamingReader.Builder.setReadHyperlinks(boolean) is not set to truepublic List<? extends Hyperlink> getHyperlinkList()
getHyperlinkList in interface SheetXlsxHyperlink to access cell referenceIllegalStateException - if StreamingReader.Builder.setReadHyperlinks(boolean) is not set to truepublic CellAddress getActiveCell()
getActiveCell in interface Sheetpublic int getDefaultColumnWidth()
Note, this value is different from getColumnWidth(int). The latter is always greater and includes
4 pixels of margin padding (two on each side), plus 1 pixel padding for the gridlines.
This value is only available after the first row is read (due to the way excel-streaming-reader streams the data).
getDefaultColumnWidth in interface Sheetpublic short getDefaultRowHeight()
This value is only available after the first row is read (due to the way excel-streaming-reader streams the data).
getDefaultRowHeight in interface Sheetpublic float getDefaultRowHeightInPoints()
This value is only available after the first row is read (due to the way excel-streaming-reader streams the data).
getDefaultRowHeightInPoints in interface Sheetpublic int getColumnWidth(int columnIndex)
getColumnWidth in interface Sheetpublic float getColumnWidthInPixels(int columnIndex)
getColumnWidthInPixels in interface Sheetpublic PaneInformation getPaneInformation()
getPaneInformation in interface Sheetpublic Map<String,SharedFormula> getSharedFormulaMap()
public void addSharedFormula(String siValue, SharedFormula sharedFormula)
siValue - the ID for the shared formula (appears in Excel sheet XML as an si attributesharedFormula - maps the base cell and formula for the shared formulapublic SharedFormula removeSharedFormula(String siValue)
siValue - the ID for the shared formula (appears in Excel sheet XML as an si attributepublic Row createRow(int rownum)
public void removeRow(Row row)
public Row getRow(int rownum)
iterator() or rowIterator() insteadpublic int getPhysicalNumberOfRows()
iterator() or rowIterator() to iterate over rows
and count the rowsgetPhysicalNumberOfRows in interface Sheetpublic void setColumnHidden(int columnIndex,
boolean hidden)
setColumnHidden in interface Sheetpublic void setRightToLeft(boolean value)
setRightToLeft in interface Sheetpublic boolean isRightToLeft()
isRightToLeft in interface Sheetpublic void setColumnWidth(int columnIndex,
int width)
setColumnWidth in interface Sheetpublic void setDefaultColumnWidth(int width)
setDefaultColumnWidth in interface Sheetpublic void setDefaultRowHeight(short height)
setDefaultRowHeight in interface Sheetpublic void setDefaultRowHeightInPoints(float height)
setDefaultRowHeightInPoints in interface Sheetpublic CellStyle getColumnStyle(int column)
getColumnStyle in interface Sheetpublic int addMergedRegion(CellRangeAddress region)
addMergedRegion in interface Sheetpublic int addMergedRegionUnsafe(CellRangeAddress cellRangeAddress)
addMergedRegionUnsafe in interface Sheetpublic void validateMergedRegions()
validateMergedRegions in interface Sheetpublic void setVerticallyCenter(boolean value)
setVerticallyCenter in interface Sheetpublic void setHorizontallyCenter(boolean value)
setHorizontallyCenter in interface Sheetpublic boolean getHorizontallyCenter()
getHorizontallyCenter in interface Sheetpublic boolean getVerticallyCenter()
getVerticallyCenter in interface Sheetpublic void removeMergedRegion(int index)
removeMergedRegion in interface Sheetpublic void removeMergedRegions(Collection<Integer> collection)
removeMergedRegions in interface Sheetpublic void setForceFormulaRecalculation(boolean value)
setForceFormulaRecalculation in interface Sheetpublic boolean getForceFormulaRecalculation()
getForceFormulaRecalculation in interface Sheetpublic void setAutobreaks(boolean value)
setAutobreaks in interface Sheetpublic void setDisplayGuts(boolean value)
setDisplayGuts in interface Sheetpublic void setDisplayZeros(boolean value)
setDisplayZeros in interface Sheetpublic boolean isDisplayZeros()
isDisplayZeros in interface Sheetpublic void setFitToPage(boolean value)
setFitToPage in interface Sheetpublic void setRowSumsBelow(boolean value)
setRowSumsBelow in interface Sheetpublic void setRowSumsRight(boolean value)
setRowSumsRight in interface Sheetpublic boolean getAutobreaks()
getAutobreaks in interface Sheetpublic boolean getDisplayGuts()
getDisplayGuts in interface Sheetpublic boolean getFitToPage()
getFitToPage in interface Sheetpublic boolean getRowSumsBelow()
getRowSumsBelow in interface Sheetpublic boolean getRowSumsRight()
getRowSumsRight in interface Sheetpublic boolean isPrintGridlines()
isPrintGridlines in interface Sheetpublic void setPrintGridlines(boolean show)
setPrintGridlines in interface Sheetpublic boolean isPrintRowAndColumnHeadings()
isPrintRowAndColumnHeadings in interface Sheetpublic void setPrintRowAndColumnHeadings(boolean b)
setPrintRowAndColumnHeadings in interface Sheetpublic PrintSetup getPrintSetup()
getPrintSetup in interface Sheetpublic void setSelected(boolean value)
setSelected in interface Sheetpublic double getMargin(short margin)
public double getMargin(PageMargin margin)
public void setMargin(short margin,
double size)
public void setMargin(PageMargin margin, double size)
public boolean getProtect()
getProtect in interface Sheetpublic void protectSheet(String password)
protectSheet in interface Sheetpublic boolean getScenarioProtect()
getScenarioProtect in interface Sheetpublic void setZoom(int i)
public short getLeftCol()
getLeftCol in interface Sheetpublic void showInPane(int toprow,
int leftcol)
showInPane in interface Sheetpublic void shiftRows(int startRow,
int endRow,
int n)
public void shiftRows(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight)
public void shiftColumns(int startColumn,
int endColumn,
int n)
shiftColumns in interface Sheetpublic void createFreezePane(int colSplit,
int rowSplit,
int leftmostColumn,
int topRow)
createFreezePane in interface Sheetpublic void createFreezePane(int colSplit,
int rowSplit)
createFreezePane in interface Sheetpublic void createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
int activePane)
createSplitPane in interface Sheetpublic void createSplitPane(int xSplitPos,
int ySplitPos,
int leftmostColumn,
int topRow,
PaneType activePane)
createSplitPane in interface Sheetpublic void setDisplayGridlines(boolean show)
setDisplayGridlines in interface Sheetpublic boolean isDisplayGridlines()
isDisplayGridlines in interface Sheetpublic void setDisplayFormulas(boolean show)
setDisplayFormulas in interface Sheetpublic boolean isDisplayFormulas()
isDisplayFormulas in interface Sheetpublic void setDisplayRowColHeadings(boolean show)
setDisplayRowColHeadings in interface Sheetpublic boolean isDisplayRowColHeadings()
isDisplayRowColHeadings in interface Sheetpublic void setRowBreak(int row)
setRowBreak in interface Sheetpublic boolean isRowBroken(int row)
isRowBroken in interface Sheetpublic void removeRowBreak(int row)
removeRowBreak in interface Sheetpublic int[] getRowBreaks()
getRowBreaks in interface Sheetpublic int[] getColumnBreaks()
getColumnBreaks in interface Sheetpublic void setColumnBreak(int column)
setColumnBreak in interface Sheetpublic boolean isColumnBroken(int column)
isColumnBroken in interface Sheetpublic void removeColumnBreak(int column)
removeColumnBreak in interface Sheetpublic void setColumnGroupCollapsed(int columnNumber,
boolean collapsed)
setColumnGroupCollapsed in interface Sheetpublic void groupColumn(int fromColumn,
int toColumn)
groupColumn in interface Sheetpublic void ungroupColumn(int fromColumn,
int toColumn)
ungroupColumn in interface Sheetpublic void groupRow(int fromRow,
int toRow)
public void ungroupRow(int fromRow,
int toRow)
ungroupRow in interface Sheetpublic void setRowGroupCollapsed(int row,
boolean collapse)
setRowGroupCollapsed in interface Sheetpublic void setDefaultColumnStyle(int column,
CellStyle style)
setDefaultColumnStyle in interface Sheetpublic void autoSizeColumn(int column)
autoSizeColumn in interface Sheetpublic void autoSizeColumn(int column,
boolean useMergedCells)
autoSizeColumn in interface Sheetpublic Drawing createDrawingPatriarch()
createDrawingPatriarch in interface Sheetpublic boolean isSelected()
isSelected in interface Sheetpublic CellRange<? extends Cell> setArrayFormula(String formula, CellRangeAddress range)
setArrayFormula in interface Sheetpublic CellRange<? extends Cell> removeArrayFormula(Cell cell)
removeArrayFormula in interface Sheetpublic DataValidationHelper getDataValidationHelper()
getDataValidationHelper in interface Sheetpublic List<? extends DataValidation> getDataValidations()
getDataValidations in interface Sheetpublic void addValidationData(DataValidation dataValidation)
addValidationData in interface Sheetpublic AutoFilter setAutoFilter(CellRangeAddress range)
setAutoFilter in interface Sheetpublic SheetConditionalFormatting getSheetConditionalFormatting()
getSheetConditionalFormatting in interface Sheetpublic CellRangeAddress getRepeatingRows()
getRepeatingRows in interface Sheetpublic CellRangeAddress getRepeatingColumns()
getRepeatingColumns in interface Sheetpublic void setRepeatingRows(CellRangeAddress rowRangeRef)
setRepeatingRows in interface Sheetpublic void setRepeatingColumns(CellRangeAddress columnRangeRef)
setRepeatingColumns in interface Sheetpublic int getColumnOutlineLevel(int columnIndex)
getColumnOutlineLevel in interface Sheetpublic void setActiveCell(CellAddress cellAddress)
setActiveCell in interface Sheet