public class XlsxReader
extends java.lang.Object
Workbook for an OOXML .xlsx file. This implementation is
suitable for low memory sax parsing or similar.XlsReader| 构造器和说明 |
|---|
XlsxReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> java.util.List<T> |
read(java.lang.Class<T> beanClz,
java.io.File file)
Reads the spreadsheet file to beans of the given type.
|
<T> java.util.List<T> |
read(java.lang.Class<T> beanClz,
java.io.File file,
int sheetNo)
Reads the spreadsheet file to beans of the given type.
|
<T> void |
read(java.lang.Class<T> beanClz,
java.io.File file,
int sheetNo,
RowListener<T> callback)
Reads the spreadsheet file to beans of the given type.
|
<T> void |
read(java.lang.Class<T> beanClz,
java.io.File file,
RowListener<T> callback)
Reads the spreadsheet file to beans of the given type.
|
<T> java.util.List<T> |
read(java.lang.Class<T> beanClz,
java.io.InputStream is)
Reads the spreadsheet file to beans of the given type.
|
<T> java.util.List<T> |
read(java.lang.Class<T> beanClz,
java.io.InputStream is,
int sheetNo)
Reads the spreadsheet file to beans of the given type.
|
<T> void |
read(java.lang.Class<T> beanClz,
java.io.InputStream is,
int sheetNo,
RowListener<T> listener)
Reads the spreadsheet file to beans of the given type.
|
<T> void |
read(java.lang.Class<T> beanClz,
java.io.InputStream is,
RowListener<T> listener)
Reads the spreadsheet file to beans of the given type.
|
public <T> void read(java.lang.Class<T> beanClz,
java.io.InputStream is,
RowListener<T> listener)
throws SpreadsheetReadException
SpreadsheetReader
The RowListener implementation callback gets triggered after reading each Row. Best
Suited for reading Large files in restricted memory environments.
T - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datais - InputStream of the spreadsheet filelistener - Custom RowListener implementation for row data callbacks.SpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> void read(java.lang.Class<T> beanClz,
java.io.InputStream is,
int sheetNo,
RowListener<T> listener)
throws SpreadsheetReadException
SpreadsheetReader
The RowListener implementation callback gets triggered after reading each Row. Best
Suited for reading Large files in restricted memory environments.
T - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datais - InputStream of the spreadsheet filesheetNo - index of the Sheet to be read (index starts from 0)listener - Custom RowListener implementation for row data callbacks.SpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> void read(java.lang.Class<T> beanClz,
java.io.File file,
RowListener<T> callback)
throws SpreadsheetReadException
SpreadsheetReader
The RowListener implementation callback gets triggered after reading each Row. Best
Suited for reading Large files in restricted memory environments.
read 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datafile - File object of the spreadsheet filecallback - Custom RowListener implementation for row data callbacks.SpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> void read(java.lang.Class<T> beanClz,
java.io.File file,
int sheetNo,
RowListener<T> callback)
throws SpreadsheetReadException
SpreadsheetReader
The RowListener implementation callback gets triggered after reading each Row. Best
Suited for reading Large files in restricted memory environments.
read 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datafile - File object of the spreadsheet filesheetNo - index of the Sheet to be read (index starts from 0)callback - Custom RowListener implementation for row data callbacks.SpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> java.util.List<T> read(java.lang.Class<T> beanClz,
java.io.File file)
throws SpreadsheetReadException
SpreadsheetReaderread 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datafile - File object of the spreadsheet fileList of objects of the parameterized typeSpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> java.util.List<T> read(java.lang.Class<T> beanClz,
java.io.InputStream is)
throws SpreadsheetReadException
SpreadsheetReaderread 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - The Class type to deserialize the rows datais - InputStream of the spreadsheet fileList of objects of the parameterized typeSpreadsheetReadException - an exception is thrown in cases where the file data is not
readable or row data to bean mapping failed.public <T> java.util.List<T> read(java.lang.Class<T> beanClz,
java.io.File file,
int sheetNo)
throws SpreadsheetReadException
SpreadsheetReaderread 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - beanClz The Class type to deserialize the rows datafile - file File object of the spreadsheet filesheetNo - index of the Sheet to be read (index starts from 0)List of objects of the parameterized typeSpreadsheetReadException - SpreadsheetReadException an exception is thrown in cases
where the file data is not readable or row data to bean mapping failed.public <T> java.util.List<T> read(java.lang.Class<T> beanClz,
java.io.InputStream is,
int sheetNo)
throws SpreadsheetReadException
SpreadsheetReaderread 在接口中 SpreadsheetReaderT - The Parameterized bean Class.beanClz - beanClz The Class type to deserialize the rows datais - InputStream of the spreadsheet filesheetNo - index of the Sheet to be read (index starts from 0)List of objects of the parameterized typeSpreadsheetReadException - SpreadsheetReadException an exception is thrown in cases
where the file data is not readable or row data to bean mapping failed.