public class TcpConnector extends Object
Constructor and Description |
---|
TcpConnector(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
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.