public class BukEtermClient extends Object
| 构造器和说明 |
|---|
BukEtermClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect() |
String |
execCmd(String cmd0) |
String |
getPassword() |
String |
getRemoteHost() |
int |
getRemotePort() |
Date |
getRequestTime() |
int |
getSoTimeout() |
int |
getTimeout() |
String |
getUsername() |
boolean |
isConnected() |
boolean |
isLogined() |
boolean |
login() |
String |
readAvailableData() |
String |
rt(String pnrNo) |
String |
rt(String pnrNo,
boolean needPn) |
void |
setLogined(boolean logined) |
void |
setPassword(String password) |
void |
setRemoteHost(String remoteHost) |
void |
setRemotePort(int remotePort) |
void |
setRequestTime(Date requestTime) |
void |
setSoTimeout(int soTimeout) |
void |
setTimeout(int timeout) |
void |
setUsername(String username) |
public void connect()
public boolean isConnected()
public boolean login()
throws IOException,
InterruptedException
public String readAvailableData() throws IOException
IOExceptionpublic String execCmd(String cmd0) throws IOException
IOExceptionpublic String rt(String pnrNo) throws IOException
IOExceptionpublic String rt(String pnrNo, boolean needPn) throws IOException
IOExceptionpublic String getRemoteHost()
public void setRemoteHost(String remoteHost)
public int getRemotePort()
public void setRemotePort(int remotePort)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public int getTimeout()
public void setTimeout(int timeout)
public boolean isLogined()
public void setLogined(boolean logined)
public Date getRequestTime()
public void setRequestTime(Date requestTime)
Copyright © 2017. All rights reserved.