public class SocketClient extends Object implements Closeable
| Constructor and Description |
|---|
SocketClient(String path) |
SocketClient(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BufferedReader |
getInput() |
PrintWriter |
getOutput() |
public SocketClient(String path) throws IOException
IOExceptionpublic SocketClient(String host, int port) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic PrintWriter getOutput() throws IOException
IOExceptionpublic BufferedReader getInput() throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2020. All rights reserved.