public class EchoClient
extends java.lang.Object
| Constructor and Description |
|---|
EchoClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
int |
getPort() |
java.lang.String |
getResponse() |
void |
setPort(int port) |
void |
write(java.lang.String command) |
public int getPort()
public void setPort(int port)
public void write(java.lang.String command)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getResponse()
throws java.io.IOException
java.io.IOExceptionpublic void connect()
throws java.io.IOException
java.io.IOExceptionpublic void close()