public interface SocketFactory
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String host,
int port) |
InputStream |
getInputStream(Socket socket) |
OutputStream |
getOutputStream(Socket socket) |
Socket createSocket(String host, int port) throws IOException, UnknownHostException
IOExceptionUnknownHostExceptionInputStream getInputStream(Socket socket) throws IOException
IOExceptionOutputStream getOutputStream(Socket socket) throws IOException
IOExceptionCopyright © 2019. All rights reserved.