public final class NullSocketStreamDecorationStrategy extends java.lang.Object implements SocketStreamDecorationStrategy
SocketStreamDecorationStrategy.Factory| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
decorate(java.net.Socket socket,
java.io.InputStream stream)
Returns the passed stream without modifcation.
|
java.io.OutputStream |
decorate(java.net.Socket socket,
java.io.OutputStream stream)
Returns the passed stream without midifcation.
|
static NullSocketStreamDecorationStrategy |
getInstance()
Returns the singleton instance of this class.
|
public static NullSocketStreamDecorationStrategy getInstance()
public java.io.InputStream decorate(java.net.Socket socket,
java.io.InputStream stream)
throws java.io.IOException
decorate in interface SocketStreamDecorationStrategysocket - the source of the original streamstream - the stream to be decoratedInputStream.java.io.IOException - if an I/O error occurs while creating the socket.public java.io.OutputStream decorate(java.net.Socket socket,
java.io.OutputStream stream)
throws java.io.IOException
decorate in interface SocketStreamDecorationStrategysocket - the source of the original streamstream - the stream to be decoratedOutputStream.java.io.IOException - if an I/O error occurs while creating the socket.