public class ChannelPipedInputStream extends InputStream implements ChannelPipedSink
| Constructor and Description |
|---|
ChannelPipedInputStream(PropertyResolver resolver,
Window localWindow) |
ChannelPipedInputStream(Window localWindow,
long windowTimeout) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
eof()
Signal end of writing to the sink
|
long |
getTimeout() |
boolean |
isOpen() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
receive(byte[] bytes,
int off,
int len) |
void |
setTimeout(long timeout) |
mark, markSupported, read, reset, skippublic ChannelPipedInputStream(PropertyResolver resolver, Window localWindow)
public ChannelPipedInputStream(Window localWindow, long windowTimeout)
public void setTimeout(long timeout)
public long getTimeout()
public int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void eof()
ChannelPipedSinkeof in interface ChannelPipedSinkpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class InputStreamIOExceptionpublic void receive(byte[] bytes,
int off,
int len)
throws IOException
receive in interface ChannelPipedSinkbytes - Bytes to be sent to the sinkoff - Offset in bufferlen - Number of bytesIOException - If failed to send the dataCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.