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, setException
available, mark, markSupported, read, read, reset, skip
public ChannelInputStream(IChannel channel)
public ChannelInputStream(IChannel channel, long millisBeforeTimeout)
public IChannel getChannel()
public long getMillisBeforeTimeout()
getMillisBeforeTimeout
in class BufferInputStream
public void setMillisBeforeTimeout(long millisBeforeTimeout)
public long getMillisInterruptCheck()
getMillisInterruptCheck
in class BufferInputStream
public void setMillisInterruptCheck(long millisInterruptCheck)
public int read() throws IOException
read
in class BufferInputStream
IOException
public String toString()
toString
in class BufferInputStream
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.