public interface SocketStreamDecorationStrategy
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SocketStreamDecorationStrategy.Factory
Factory interface for creating instances of
SocketStreamDecorationStrategy. |
java.io.InputStream decorate(java.net.Socket socket,
java.io.InputStream stream)
throws java.io.IOException
InputStream.
Note that the implementation which throws an exception must also
close the original stream.socket - the source of the original streamstream - the stream to be decoratedInputStream.java.io.IOException - if an I/O error occurs while creating the socket.java.io.OutputStream decorate(java.net.Socket socket,
java.io.OutputStream stream)
throws java.io.IOException
OutputStream.
Note that the implementation which throws an exception must also
close the original stream.socket - the source of the original streamstream - the stream to be decoratedOutputStream.java.io.IOException - if an I/O error occurs while creating the socket.