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
public class ChannelPipedInputStream extends InputStream implements ChannelPipedSink
TODO Add javadoc- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description ChannelPipedInputStream(LocalWindow localWindow, long windowTimeout)ChannelPipedInputStream(LocalWindow localWindow, Duration windowTimeout)ChannelPipedInputStream(PropertyResolver resolver, LocalWindow localWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voideof()Signal end of writing to the sinklonggetTimeout()booleanisOpen()intread()intread(byte[] b, int off, int len)voidreceive(byte[] bytes, int off, int len)voidsetTimeout(long timeout)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ChannelPipedInputStream
public ChannelPipedInputStream(PropertyResolver resolver, LocalWindow localWindow)
-
ChannelPipedInputStream
public ChannelPipedInputStream(LocalWindow localWindow, Duration windowTimeout)
-
ChannelPipedInputStream
public ChannelPipedInputStream(LocalWindow localWindow, long windowTimeout)
-
-
Method Detail
-
setTimeout
public void setTimeout(long timeout)
-
getTimeout
public long getTimeout()
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
eof
public void eof()
Description copied from interface:ChannelPipedSinkSignal end of writing to the sink- Specified by:
eofin interfaceChannelPipedSink
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
receive
public void receive(byte[] bytes, int off, int len) throws IOException- Specified by:
receivein interfaceChannelPipedSink- Parameters:
bytes- Bytes to be sent to the sinkoff- Offset in bufferlen- Number of bytes- Throws:
IOException- If failed to send the data
-
-