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 StreamSource
TransportException
public void disconnect() throws TransportException
disconnect
in interface StreamSource
TransportException
StreamSource.disconnect()
public OutputStream getOutboundStream() throws TransportException
getOutboundStream
in interface StreamSource
TransportException
public InputStream getInboundStream() throws TransportException
getInboundStream
in interface StreamSource
TransportException
Copyright © 2001–2017 University Health Network. All rights reserved.