ch.ethz.iks.r_osgi.streams
Class OutputStreamProxy
java.lang.Object
java.io.OutputStream
ch.ethz.iks.r_osgi.streams.OutputStreamProxy
- All Implemented Interfaces:
- Closeable, Flushable
public class OutputStreamProxy
- extends OutputStream
Output stream proxy.
- Author:
- Michael Duller, ETH Zurich.
|
Method Summary |
void |
write(byte[] b,
int off,
int len)
write to the stream. |
void |
write(int b)
write to the stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamProxy
public OutputStreamProxy(short streamID,
ChannelEndpointImpl endpoint)
- create a new output stream proxy.
- Parameters:
streamID - the stream ID.endpoint - the endpoint.
write
public void write(int b)
throws IOException
- write to the stream.
- Specified by:
write in class OutputStream
- Parameters:
b - the value.
- Throws:
IOException - in case of IO failures.
write
public void write(byte[] b,
int off,
int len)
throws IOException
- write to the stream.
- Overrides:
write in class OutputStream
- Parameters:
the - bytes.off - the offset.len - the length.
- Throws:
IOException