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
DataSource
get
in interface DataSource
Exception
- 与IO异常相关 Related to IO exceptionpublic String getStatusLine()
DataSource
getStatusLine
in interface DataSource
public int getStatusCode()
DataSource
getStatusCode
in interface DataSource
Copyright © 2016–2021. All rights reserved.