public class SocketConnection extends Object implements Connection
| Constructor and Description |
|---|
SocketConnection(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
boolean |
isOpen() |
void |
setSoTimeout(int timeout) |
public SocketConnection(Socket socket) throws IOException
IOExceptionpublic void setSoTimeout(int timeout)
throws IOException
setSoTimeout in interface ConnectionIOExceptionpublic void close()
close in interface Connectionpublic boolean isOpen()
isOpen in interface Connectionpublic InputStream getInputStream()
getInputStream in interface Connectionpublic OutputStream getOutputStream()
getOutputStream in interface Connection