Package org.eclipse.net4j.channel
Class ChannelInputStream
java.lang.Object
java.io.InputStream
org.eclipse.net4j.buffer.BufferInputStream
org.eclipse.net4j.channel.ChannelInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IBufferHandler
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.buffer.BufferInputStream
DEFAULT_MILLIS_BEFORE_TIMEOUT, DEFAULT_MILLIS_INTERRUPT_CHECK, NO_TIMEOUT
-
Constructor Summary
ConstructorDescriptionChannelInputStream
(IChannel channel) ChannelInputStream
(IChannel channel, long millisBeforeTimeout) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
int
read()
void
setMillisBeforeTimeout
(long millisBeforeTimeout) void
setMillisInterruptCheck
(long millisInterruptCheck) toString()
Methods inherited from class org.eclipse.net4j.buffer.BufferInputStream
close, closeChannel, ensureBuffer, getException, handleBuffer, isCCAM, read, restartTimeout, setException
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ChannelInputStream
-
ChannelInputStream
-
-
Method Details
-
getChannel
-
getMillisBeforeTimeout
public long getMillisBeforeTimeout()- Overrides:
getMillisBeforeTimeout
in classBufferInputStream
-
setMillisBeforeTimeout
public void setMillisBeforeTimeout(long millisBeforeTimeout) -
getMillisInterruptCheck
public long getMillisInterruptCheck()- Overrides:
getMillisInterruptCheck
in classBufferInputStream
-
setMillisInterruptCheck
public void setMillisInterruptCheck(long millisInterruptCheck) -
read
- Overrides:
read
in classBufferInputStream
- Throws:
IOException
-
toString
- Overrides:
toString
in classBufferInputStream
-