|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.net.BufferingSocketStreamDecorationStrategy
A strategy for buffering socket streams
Nested Class Summary | |
static class |
BufferingSocketStreamDecorationStrategy.Factory
Factory for creating instances of BufferingSocketStreamDecorationStrategy . |
Constructor Summary | |
BufferingSocketStreamDecorationStrategy(int inputBufferSize,
int outputBufferSize)
Constructs a decoration strategy using the specified buffer sizes. |
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 |
Constructor Detail |
public BufferingSocketStreamDecorationStrategy(int inputBufferSize, int outputBufferSize)
inputBufferSize
- the size of input buffer to be usedoutputBufferSize
- the size of the output buffer to be usedMethod Detail |
public java.io.InputStream decorate(java.net.Socket socket, java.io.InputStream stream) throws java.io.IOException
InputStream
.
decorate
in interface SocketStreamDecorationStrategy
socket
- the source of the original streamstream
- the stream to be decorated
InputStream
.
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
OutputStream
.
decorate
in interface SocketStreamDecorationStrategy
socket
- the source of the original streamstream
- the stream to be decorated
OutputStream
.
java.io.IOException
- if an I/O error occurs while creating the socket.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |