public class ChannelPipedInputStream extends InputStream implements ChannelPipedSink
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
| Constructor and Description |
|---|
ChannelPipedInputStream(Window localWindow) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
eof()
Signal end of writing to the sink
|
long |
getTimeout() |
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 static final long DEFAULT_TIMEOUT
public ChannelPipedInputStream(Window localWindow)
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 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–2015 The Apache Software Foundation. All rights reserved.