public interface Sheet extends Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
org.ttzero.excel.reader.CalcSheet |
asCalcSheet()
Make worksheets parse formulas
|
org.ttzero.excel.reader.MergeSheet |
asMergeSheet()
Make worksheets copy value on merge cells
|
Sheet |
bind(Class<?> clazz)
Set the binding type
|
void |
close()
Close resource
|
static int |
col2Int(String col)
Convert column mark to int
|
Row |
createRow()
Create a
Row to read |
Iterator<Row> |
dataIterator()
Iterating over data rows without header information and blank lines
|
default Stream<Row> |
dataRows()
Return stream with out header row and empty rows
|
Dimension |
getDimension()
Returns The range address of the used area in
the current sheet
NOTE: This method can only guarantee accurate row ranges
|
Row |
getHeader()
Returns the header of the list.
|
int |
getId()
The worksheet id, it difference with index is that the id will not change
because of moving or deleting worksheet.
|
int |
getIndex()
The index of worksheet located at the workbook
|
String |
getName()
The worksheet name
|
int |
getSize()
已过时。
use
getDimension() to getting full range address |
boolean |
isHidden()
Test Worksheet is hidden
|
default boolean |
isShow()
Test Worksheet is show
|
Iterator<Row> |
iterator()
Iterating each row of data contains header information and blank lines
|
List<Drawings.Picture> |
listPictures()
List all pictures in workbook
|
Sheet |
load()
Load the sheet data
|
default Sheet |
reset()
Reset the
Sheet's row index to begging |
default Stream<Row> |
rows()
Return a stream of all rows
|
default void |
saveAsCSV(OutputStream os)
Save file as Comma-Separated Values.
|
default void |
saveAsCSV(Path path)
Save file as Comma-Separated Values.
|
String getName()
int getIndex()
int getId()
@Deprecated int getSize()
getDimension() to getting full range addressDimension getDimension()
NOTE: This method can only guarantee accurate row ranges
Dimension rangesboolean isHidden()
default boolean isShow()
Row getHeader()
HeaderRowSheet load() throws IOException
SheetIOException - if I/O error occurIterator<Row> iterator()
Iterator<Row> dataIterator()
List<Drawings.Picture> listPictures()
default Sheet reset()
Sheet's row index to beggingSheetExcelReadException - if I/O error occur.UnsupportedOperationException - if sub-class un-implement this function.default Stream<Row> rows()
Stream<Row> providing the lines of row
described by this Sheetdefault Stream<Row> dataRows()
Stream<Row> providing the lines of row
described by this Sheetstatic int col2Int(String col)
col - column markvoid close()
throws IOException
close 在接口中 AutoCloseableclose 在接口中 CloseableIOException - if I/O error occurdefault void saveAsCSV(Path path) throws IOException
path - the output storage pathIOException - if I/O error occur.default void saveAsCSV(OutputStream os) throws IOException
os - the outputIOException - if I/O error occur.org.ttzero.excel.reader.CalcSheet asCalcSheet()
CalcSheetorg.ttzero.excel.reader.MergeSheet asMergeSheet()
MergeSheetCopyright © 2022. All rights reserved.