public final class AsyncChannelBufferInputStream extends InputStream
InputStream implementation that reads data from ChannelBuffer.
It allows asynchronous update to add new buffer from this class to read from. The end of file
is signaled by appending an empty ChannelBuffer to this stream.| Constructor and Description |
|---|
AsyncChannelBufferInputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(org.jboss.netty.buffer.ChannelBuffer buffer)
Appends more content to be consumable through this stream.
|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void append(org.jboss.netty.buffer.ChannelBuffer buffer)
throws InterruptedException,
IOException
InterruptedException - if the append operation is interruptedIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.