public class ExcelExt extends Object implements SafeCloseable
使用流式读取文件必须是 xlsx 文件
Constructor and Description |
---|
ExcelExt(File file) |
ExcelExt(File file,
boolean streaming) |
ExcelExt(File file,
String password) |
ExcelExt(File file,
String password,
boolean streaming) |
ExcelExt(InputStream in) |
ExcelExt(InputStream in,
boolean streaming) |
ExcelExt(InputStream in,
String password) |
ExcelExt(InputStream in,
String password,
boolean streaming) |
ExcelExt(InputStream in,
String password,
boolean streaming,
boolean close) |
ExcelExt(String file) |
ExcelExt(String file,
boolean streaming) |
ExcelExt(String file,
String password) |
ExcelExt(String file,
String password,
boolean streaming) |
ExcelExt(org.apache.poi.ss.usermodel.Workbook workbook) |
Modifier and Type | Method and Description |
---|---|
ExcelArrayReader |
arrayReader(int sheetIndex) |
ExcelArrayReader |
arrayReader(int sheetIndex,
Consumer<String[]> consumer) |
ExcelArrayReader |
arrayReader(int sheetIndex,
List<String[]> rows) |
ExcelArrayReader |
arrayReader(String sheetName) |
ExcelArrayReader |
arrayReader(String sheetName,
Consumer<String[]> consumer) |
ExcelArrayReader |
arrayReader(String sheetName,
List<String[]> rows) |
<T> ExcelBeanReader<T> |
beanReader(int sheetIndex,
Class<T> targetClass) |
<T> ExcelBeanReader<T> |
beanReader(int sheetIndex,
Class<T> targetClass,
Consumer<T> consumer) |
<T> ExcelBeanReader<T> |
beanReader(int sheetIndex,
Class<T> targetClass,
List<T> rows) |
<T> ExcelBeanReader<T> |
beanReader(String sheetName,
Class<T> targetClass) |
<T> ExcelBeanReader<T> |
beanReader(String sheetName,
Class<T> targetClass,
Consumer<T> consumer) |
<T> ExcelBeanReader<T> |
beanReader(String sheetName,
Class<T> targetClass,
List<T> rows) |
void |
close()
安全关闭
|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
boolean |
isStreaming() |
<T> ExcelLambdaReader<T> |
lambdaReader(int sheetIndex,
Consumer<T> consumer,
Supplier<T> supplier) |
<T> ExcelLambdaReader<T> |
lambdaReader(int sheetIndex,
List<T> rows,
Supplier<T> supplier) |
<T> ExcelLambdaReader<T> |
lambdaReader(int sheetIndex,
Supplier<T> supplier) |
<T> ExcelLambdaReader<T> |
lambdaReader(String sheetName,
Consumer<T> consumer,
Supplier<T> supplier) |
<T> ExcelLambdaReader<T> |
lambdaReader(String sheetName,
List<T> rows,
Supplier<T> supplier) |
<T> ExcelLambdaReader<T> |
lambdaReader(String sheetName,
Supplier<T> supplier) |
<K,V> ExcelMapReader<K,V> |
mapReader(int sheetIndex) |
<K,V> ExcelMapReader<K,V> |
mapReader(int sheetIndex,
Consumer<MutableMap<K,V>> consumer) |
<K,V> ExcelMapReader<K,V> |
mapReader(int sheetIndex,
List<MutableMap<K,V>> rows) |
<K,V> ExcelMapReader<K,V> |
mapReader(String sheetName) |
<K,V> ExcelMapReader<K,V> |
mapReader(String sheetName,
Consumer<MutableMap<K,V>> consumer) |
<K,V> ExcelMapReader<K,V> |
mapReader(String sheetName,
List<MutableMap<K,V>> rows) |
public ExcelExt(File file)
public ExcelExt(File file, boolean streaming)
public ExcelExt(String file)
public ExcelExt(String file, boolean streaming)
public ExcelExt(InputStream in)
public ExcelExt(InputStream in, boolean streaming)
public ExcelExt(InputStream in, String password)
public ExcelExt(InputStream in, String password, boolean streaming)
public ExcelExt(InputStream in, String password, boolean streaming, boolean close)
public ExcelExt(org.apache.poi.ss.usermodel.Workbook workbook)
public ExcelArrayReader arrayReader(int sheetIndex)
public ExcelArrayReader arrayReader(String sheetName)
public ExcelArrayReader arrayReader(int sheetIndex, List<String[]> rows)
public ExcelArrayReader arrayReader(String sheetName, List<String[]> rows)
public ExcelArrayReader arrayReader(int sheetIndex, Consumer<String[]> consumer)
public ExcelArrayReader arrayReader(String sheetName, Consumer<String[]> consumer)
public <K,V> ExcelMapReader<K,V> mapReader(int sheetIndex)
public <K,V> ExcelMapReader<K,V> mapReader(String sheetName)
public <K,V> ExcelMapReader<K,V> mapReader(int sheetIndex, List<MutableMap<K,V>> rows)
public <K,V> ExcelMapReader<K,V> mapReader(String sheetName, List<MutableMap<K,V>> rows)
public <K,V> ExcelMapReader<K,V> mapReader(int sheetIndex, Consumer<MutableMap<K,V>> consumer)
public <K,V> ExcelMapReader<K,V> mapReader(String sheetName, Consumer<MutableMap<K,V>> consumer)
public <T> ExcelBeanReader<T> beanReader(int sheetIndex, Class<T> targetClass)
public <T> ExcelBeanReader<T> beanReader(String sheetName, Class<T> targetClass)
public <T> ExcelBeanReader<T> beanReader(int sheetIndex, Class<T> targetClass, List<T> rows)
public <T> ExcelBeanReader<T> beanReader(String sheetName, Class<T> targetClass, List<T> rows)
public <T> ExcelBeanReader<T> beanReader(int sheetIndex, Class<T> targetClass, Consumer<T> consumer)
public <T> ExcelBeanReader<T> beanReader(String sheetName, Class<T> targetClass, Consumer<T> consumer)
public <T> ExcelLambdaReader<T> lambdaReader(int sheetIndex, Supplier<T> supplier)
public <T> ExcelLambdaReader<T> lambdaReader(String sheetName, Supplier<T> supplier)
public <T> ExcelLambdaReader<T> lambdaReader(int sheetIndex, List<T> rows, Supplier<T> supplier)
public <T> ExcelLambdaReader<T> lambdaReader(String sheetName, List<T> rows, Supplier<T> supplier)
public <T> ExcelLambdaReader<T> lambdaReader(int sheetIndex, Consumer<T> consumer, Supplier<T> supplier)
public <T> ExcelLambdaReader<T> lambdaReader(String sheetName, Consumer<T> consumer, Supplier<T> supplier)
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
public boolean isStreaming()
public void close()
SafeCloseable
close
in interface SafeCloseable
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.