public class FileRead extends Object implements DataSource
| Constructor and Description |
|---|
FileRead(String filePath)
构建函数 Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
get()
获取数据 retrieve data
|
int |
getStatusCode()
获取执行结果状态码 Get execution result status code
|
String |
getStatusLine()
获取执行结果状态的字符串说明 Get string description of execution result status
|
public FileRead(String filePath)
filePath - 文件路径 file pathpublic String get() throws Exception
DataSourceget in interface DataSourceException - 与IO异常相关 Related to IO exceptionpublic String getStatusLine()
DataSourcegetStatusLine in interface DataSourcepublic int getStatusCode()
DataSourcegetStatusCode in interface DataSourceCopyright © 2016–2021. All rights reserved.