Package org.apache.sshd.common.channel
Class ChannelPipedInputStream
java.lang.Object
java.io.InputStream
org.apache.sshd.common.channel.ChannelPipedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ChannelPipedSink
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
-
Constructor Summary
ConstructorDescriptionChannelPipedInputStream
(LocalWindow localWindow, long windowTimeout) ChannelPipedInputStream
(LocalWindow localWindow, Duration windowTimeout) ChannelPipedInputStream
(PropertyResolver resolver, LocalWindow localWindow) -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ChannelPipedInputStream
-
ChannelPipedInputStream
-
ChannelPipedInputStream
-
-
Method Details
-
isOpen
public boolean isOpen() -
setTimeout
public void setTimeout(long timeout) -
getTimeout
public long getTimeout() -
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
eof
public void eof()Description copied from interface:ChannelPipedSink
Signal end of writing to the sink- Specified by:
eof
in interfaceChannelPipedSink
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
receive
- Specified by:
receive
in interfaceChannelPipedSink
- Parameters:
bytes
- Bytes to be sent to the sinkoff
- Offset in bufferlen
- Number of bytes- Throws:
IOException
- If failed to send the data
-