public class OpsParse<R> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) Map<String,Field> |
allFields
实体类包含的字段
|
(专用程序包) int |
fromMode
文件源类型
1. path
2. stream
|
(专用程序包) String |
fromPath
导入来源
|
(专用程序包) InputStream |
fromStream
导入来源
|
(专用程序包) boolean |
mapData
实体类包含的字段
|
(专用程序包) String |
password
密码
|
(专用程序包) Class<R> |
rowClass
数据类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
checkSetFromMode(int wantSetMode)
检测是否已经被设置状态
|
OpsParse<R> |
from(InputStream inputStream)
导入来源文件
|
OpsParse<R> |
from(InputStream inputStream,
String password)
导入来源文件
|
OpsParse<R> |
from(String path)
导入来源文件
|
OpsParse<R> |
from(String path,
String password)
导入来源文件
|
OpsSheet<R> |
opsSheet(int sheetIndex,
int headerCount,
int footerCount)
导入sheet设置
|
OpsSheet<R> |
opsSheet(String sheetName,
int headerCount,
int footerCount)
导入sheet设置
|
boolean mapData
int fromMode
1. path 2. stream
String password
String fromPath
InputStream fromStream
private void checkSetFromMode(int wantSetMode)
public OpsParse<R> from(InputStream inputStream)
inputStream - 文件流public OpsParse<R> from(String path, String password)
path - 文件地址password - 密码public OpsParse<R> from(InputStream inputStream, String password)
inputStream - 文件流password - 密码public OpsSheet<R> opsSheet(int sheetIndex, int headerCount, int footerCount)
sheetIndex - sheet下标headerCount - 表头行数footerCount - 尾部行数Copyright © 2023. All rights reserved.