ch.ethz.iks.r_osgi.streams
Class InputStreamProxy
java.lang.Object
java.io.InputStream
ch.ethz.iks.r_osgi.streams.InputStreamProxy
- All Implemented Interfaces:
- java.io.Closeable
public class InputStreamProxy
- extends java.io.InputStream
Proxy object for input streams.
- Author:
- Michael Duller, ETH Zurich
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 |
InputStreamProxy
public InputStreamProxy(short streamID,
ChannelEndpointImpl endpoint)
- Create a new input stream proxy.
- Parameters:
streamID
- the stream id.endpoint
- the channel endpoint.
read
public int read()
throws java.io.IOException
- Read from the stream.
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
- See Also:
InputStream.read()
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Read from the stream.
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
- See Also:
InputStream.read(byte[], int, int)
Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.