public class TcpSocket extends Object implements ClosableOutputStream
| Constructor and Description |
|---|
TcpSocket(Socket socket,
ErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
SocketAddress |
getRemoteSocketAddress() |
Socket |
getSocket() |
public TcpSocket(Socket socket, ErrorHandler errorHandler)
public boolean close()
close in interface ClosableOutputStreampublic Socket getSocket()
public SocketAddress getRemoteSocketAddress()
public OutputStream getOutputStream() throws IOException
getOutputStream in interface ClosableOutputStreamIOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.