T
- Response type of the Future
public 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, receive
mark, markSupported, read, reset, skip
public FutureCompletionInputStream(Future<?> job)
public int read() throws IOException
read
in class PipedInputStream
IOException
PipedInputStream.read()
public int read(byte[] b, int off, int len) throws IOException
read
in class PipedInputStream
IOException
PipedInputStream.read(byte[], int, int)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.