| Constructor and Description |
|---|
StreamConsumer(com.entwinemedia.fn.Fn<String,Boolean> consumer)
Create a new stream consumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume(InputStream stream)
Start consuming
stream. |
void |
run() |
void |
stopConsuming()
Forcibly stop consuming the stream.
|
void |
waitUntilFinished()
Wait until the stream has been fully consumed.
|
void |
waitUntilRunning()
Wait for the executing thread to run.
|
public void waitUntilRunning()
public void waitUntilFinished()
public void stopConsuming()
public void consume(InputStream stream)
stream. It is guaranteed that the stream gets closed.Copyright © 2009–2021 Opencast Project. All rights reserved.