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) |
java.lang.String |
toString() |
close, closeChannel, ensureBuffer, getException, handleBuffer, isCCAM, read, restartTimeout, setExceptionpublic 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 java.io.IOException
read in class BufferInputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class BufferInputStreamCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html