public abstract class BaseRunScript extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected InputStream |
inputStream |
protected File |
logFile |
protected LogRecorder |
logRecorder
日志文件
|
protected Process |
process |
Modifier | Constructor and Description |
---|---|
protected |
BaseRunScript(File logFile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
end(String msg)
结束执行
|
protected void |
handle(String line)
响应
|
protected final LogRecorder logRecorder
protected final File logFile
protected Process process
protected InputStream inputStream
protected BaseRunScript(File logFile)
protected void handle(String line)
line
- 信息protected abstract void end(String msg)
msg
- 异常方法public void close()
close
in interface AutoCloseable
Copyright © 2017–2022. All rights reserved.