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 ClosableOutputStream
public Socket getSocket()
public SocketAddress getRemoteSocketAddress()
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface ClosableOutputStream
IOException
public InputStream getInputStream() throws IOException
IOException
Copyright © 2016. All Rights Reserved.