ch.ethz.iks.r_osgi.streams
Class OutputStreamProxy

java.lang.Object
  extended by java.io.OutputStream
      extended by ch.ethz.iks.r_osgi.streams.OutputStreamProxy
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class OutputStreamProxy
extends java.io.OutputStream

Output stream proxy.

Author:
Michael Duller, ETH Zurich.

Constructor Summary
OutputStreamProxy(short streamID, ChannelEndpointImpl endpoint)
          create a new output stream proxy.
 
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.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamProxy

public OutputStreamProxy(short streamID,
                         ChannelEndpointImpl endpoint)
create a new output stream proxy.

Parameters:
streamID - the stream ID.
endpoint - the endpoint.
Method Detail

write

public void write(int b)
           throws java.io.IOException
write to the stream.

Specified by:
write in class java.io.OutputStream
Parameters:
b - the value.
Throws:
java.io.IOException - in case of IO failures.

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
write to the stream.

Overrides:
write in class java.io.OutputStream
Parameters:
the - bytes.
off - the offset.
len - the length.
Throws:
java.io.IOException


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.