public class TcpConnector extends Object
构造器和说明 |
---|
TcpConnector(String host,
int port) |
限定符和类型 | 方法和说明 |
---|---|
TcpConnector |
close() |
TcpConnector |
connect() |
String |
getHost() |
int |
getPort() |
boolean |
isClosed() |
String |
readLine() |
TcpConnector |
write(String str) |
TcpConnector |
writeLine(String str) |
public TcpConnector(String host, int port)
public TcpConnector connect()
public String readLine() throws IOException
IOException
public TcpConnector write(String str) throws IOException
IOException
public TcpConnector writeLine(String str) throws IOException
IOException
public boolean isClosed()
public TcpConnector close()
public String getHost()
public int getPort()
Copyright © 2017. All rights reserved.