com.hankcs.hanlp.corpus.io
类 EasyReader

java.lang.Object
  继承者 com.hankcs.hanlp.corpus.io.EasyReader

public class EasyReader
extends Object

文本读取工具

作者:
hankcs

构造方法摘要
EasyReader(String root)
          构造
EasyReader(String root, boolean verbose)
          构造
 
方法摘要
 void read(LineHandler handler)
          读取
 void read(LineHandler handler, int size)
          读取
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

EasyReader

public EasyReader(String root)
构造

参数:
root - 根目录

EasyReader

public EasyReader(String root,
                  boolean verbose)
构造

参数:
root - 根目录
verbose - 是否输出进度
方法详细信息

read

public void read(LineHandler handler,
                 int size)
          throws Exception
读取

参数:
handler - 处理逻辑
size - 读取多少个文件
抛出:
Exception

read

public void read(LineHandler handler)
          throws Exception
读取

参数:
handler - 处理逻辑
抛出:
Exception


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.