public class EasyReader extends Object
| 构造器和说明 |
|---|
EasyReader(String root)
构造
|
EasyReader(String root,
boolean verbose)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
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–2018 码农场. All rights reserved.