T - Response type of the Futurepublic class FutureCompletionInputStream extends PipedInputStream
PipedInputStream which, when fully-read, will block upon a Future and report any exceptional
circumstances to the owning Thread.buffer, in, out, PIPE_SIZE| Constructor and Description |
|---|
FutureCompletionInputStream(Future<?> job)
Creates a new Stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, close, connect, receivemark, markSupported, read, reset, skippublic FutureCompletionInputStream(Future<?> job)
public int read()
throws IOException
read in class PipedInputStreamIOExceptionPipedInputStream.read()public int read(byte[] b,
int off,
int len)
throws IOException
read in class PipedInputStreamIOExceptionPipedInputStream.read(byte[], int, int)Copyright © 2012 JBoss by Red Hat. All Rights Reserved.