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
IOExceptionpublic TcpConnector write(String str) throws IOException
IOExceptionpublic TcpConnector writeLine(String str) throws IOException
IOExceptionpublic boolean isClosed()
public TcpConnector close()
public String getHost()
public int getPort()
Copyright © 2017. All rights reserved.