org.activeio.adapter
Class SyncChannelToInputStream
java.lang.Object
java.io.InputStream
org.activeio.adapter.SyncChannelToInputStream
- public class SyncChannelToInputStream
- extends InputStream
Provides an InputStream for a given SynchChannel.
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncChannelToInputStream
public SyncChannelToInputStream(SyncChannel channel)
- Parameters:
channel
-
read
public int read()
throws IOException
- Throws:
IOException
- See Also:
InputStream.read()
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
- See Also:
InputStream.read(byte[], int, int)
close
public void close()
throws IOException
- Throws:
IOException
- See Also:
InputStream.close()
isClosed
public boolean isClosed()
setTimeout
public void setTimeout(long timeout)
- Parameters:
timeout
-
getTimeout
public long getTimeout()
- Returns:
Copyright © -2007 The ActiveIO Project. All Rights Reserved.