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) 2014 Eike Stepper (Berlin, 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