org.openorb.orb.net
Class LegacySocketStreamDecorationStrategy

java.lang.Object
  extended by org.openorb.orb.net.LegacySocketStreamDecorationStrategy
All Implemented Interfaces:
SocketStreamDecorationStrategy

public final class LegacySocketStreamDecorationStrategy
extends java.lang.Object
implements SocketStreamDecorationStrategy

This strategy handles the functionality of the iiop.SocketInputStreamClass an iiop.SocketOutputStreamClass properties and is only a temporary measure for backward compatibility.

Version:
$Revision: 1.3 $ $Date: 2004/05/17 08:23:00 $
Author:
Richard G Clark

Nested Class Summary
static class LegacySocketStreamDecorationStrategy.Factory
          Factory for creating instances of LegacySocketStreamDecorationStrategy.
 
Method Summary
 java.io.InputStream decorate(java.net.Socket socket, java.io.InputStream stream)
          Creates a decorated InputStream.
 java.io.OutputStream decorate(java.net.Socket socket, java.io.OutputStream stream)
          Creates a decorated OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decorate

public java.io.InputStream decorate(java.net.Socket socket,
                                    java.io.InputStream stream)
                             throws java.io.IOException
Creates a decorated InputStream.

Specified by:
decorate in interface SocketStreamDecorationStrategy
Parameters:
socket - the source of the original stream
stream - the stream to be decorated
Returns:
a decorated InputStream.
Throws:
java.io.IOException - if an I/O error occurs while creating the socket.

decorate

public java.io.OutputStream decorate(java.net.Socket socket,
                                     java.io.OutputStream stream)
                              throws java.io.IOException
Creates a decorated OutputStream.

Specified by:
decorate in interface SocketStreamDecorationStrategy
Parameters:
socket - the source of the original stream
stream - the stream to be decorated
Returns:
a decorated OutputStream.
Throws:
java.io.IOException - if an I/O error occurs while creating the socket.