ch.ethz.iks.r_osgi.streams
Class InputStreamProxy

java.lang.Object
  extended by java.io.InputStream
      extended by ch.ethz.iks.r_osgi.streams.InputStreamProxy
All Implemented Interfaces:
Closeable

public class InputStreamProxy
extends InputStream

Proxy object for input streams.

Author:
Michael Duller, ETH Zurich

Constructor Summary
InputStreamProxy(short streamID, ChannelEndpointImpl endpoint)
          Create a new input stream proxy.
 
Method Summary
 int read()
          Read from the stream.
 int read(byte[] b, int off, int len)
          Read from the stream.
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamProxy

public InputStreamProxy(short streamID,
                        ChannelEndpointImpl endpoint)
Create a new input stream proxy.

Parameters:
streamID - the stream id.
endpoint - the channel endpoint.
Method Detail

read

public int read()
         throws IOException
Read from the stream.

Specified by:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read()

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Read from the stream.

Overrides:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read(byte[], int, int)