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
IOException
public void setSoTimeout(int timeout) throws IOException
setSoTimeout
in interface Connection
IOException
public void close()
close
in interface Connection
public boolean isOpen()
isOpen
in interface Connection
public InputStream getInputStream()
getInputStream
in interface Connection
public OutputStream getOutputStream()
getOutputStream
in interface Connection