public class EasyReader extends Object
| Constructor and Description |
|---|
EasyReader(String root)
构造
|
EasyReader(String root,
boolean verbose)
构造
|
| Modifier and Type | Method and Description |
|---|---|
void |
read(LineHandler handler)
读取
|
void |
read(LineHandler handler,
int size)
读取
|
public EasyReader(String root)
root - 根目录public EasyReader(String root, boolean verbose)
root - 根目录verbose - 是否输出进度public void read(LineHandler handler, int size) throws Exception
handler - 处理逻辑size - 读取多少个文件Exceptionpublic void read(LineHandler handler) throws Exception
handler - 处理逻辑ExceptionCopyright © 2014–2021 码农场. All rights reserved.