public abstract class SocketStreamSource extends Object implements StreamSource
StreamSource based on sockets.| Constructor and Description |
|---|
SocketStreamSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
connect()
Gets fresh instance of socket, which is subsequently available
from
getSocket(). |
void |
disconnect()
Closes streams and underlying socket.
|
InputStream |
getInboundStream() |
OutputStream |
getOutboundStream() |
abstract Socket |
getSocket() |
public SocketStreamSource()
public abstract Socket getSocket()
public abstract void connect() throws TransportException
getSocket().connect in interface StreamSourceTransportExceptionpublic void disconnect() throws TransportException
disconnect in interface StreamSourceTransportExceptionStreamSource.disconnect()public OutputStream getOutboundStream() throws TransportException
getOutboundStream in interface StreamSourceTransportExceptionpublic InputStream getInboundStream() throws TransportException
getInboundStream in interface StreamSourceTransportExceptionCopyright © 2001–2017 University Health Network. All rights reserved.