public class LoggerListener extends Object implements PumperListener
| 构造器和说明 |
|---|
LoggerListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onReadBegin(String pumperName)
文件开头
|
void |
onReadEnd(String pumperName,
int totalLines)
文件结束
|
void |
onReadException(String pumperName,
IOException ioe)
读取遇到异常
|
void |
onReadLine(String pumperName,
String lineText,
int lineNumber)
读取一行
|
public void onReadBegin(String pumperName)
PumperListeneronReadBegin 在接口中 PumperListenerpublic void onReadLine(String pumperName, String lineText, int lineNumber)
PumperListeneronReadLine 在接口中 PumperListenerpublic void onReadEnd(String pumperName, int totalLines)
PumperListeneronReadEnd 在接口中 PumperListenerpublic void onReadException(String pumperName, IOException ioe)
PumperListeneronReadException 在接口中 PumperListenerCopyright © 2017. All rights reserved.