public class ChannelInputStream extends BufferInputStream
DEFAULT_MILLIS_BEFORE_TIMEOUT, DEFAULT_MILLIS_INTERRUPT_CHECK, NO_TIMEOUT| Constructor and Description |
|---|
ChannelInputStream(IChannel channel) |
ChannelInputStream(IChannel channel,
long millisBeforeTimeout) |
| Modifier and Type | Method and Description |
|---|---|
IChannel |
getChannel() |
long |
getMillisBeforeTimeout() |
long |
getMillisInterruptCheck() |
int |
read() |
void |
setMillisBeforeTimeout(long millisBeforeTimeout) |
void |
setMillisInterruptCheck(long millisInterruptCheck) |
String |
toString() |
close, closeChannel, ensureBuffer, getException, handleBuffer, isCCAM, restartTimeout, setExceptionavailable, mark, markSupported, read, read, reset, skippublic ChannelInputStream(IChannel channel)
public ChannelInputStream(IChannel channel, long millisBeforeTimeout)
public IChannel getChannel()
public long getMillisBeforeTimeout()
getMillisBeforeTimeout in class BufferInputStreampublic void setMillisBeforeTimeout(long millisBeforeTimeout)
public long getMillisInterruptCheck()
getMillisInterruptCheck in class BufferInputStreampublic void setMillisInterruptCheck(long millisInterruptCheck)
public int read()
throws IOException
read in class BufferInputStreamIOExceptionpublic String toString()
toString in class BufferInputStreamCopyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.