public final class AbortableInputStream extends FilterInputStream implements Abortable
in
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts the execution of the task.
|
static AbortableInputStream |
create(InputStream delegate)
Creates an instance of
AbortableInputStream that ignores abort. |
static AbortableInputStream |
create(InputStream delegate,
Abortable abortable)
Creates an instance of
AbortableInputStream . |
static AbortableInputStream |
createEmpty() |
InputStream |
delegate()
Access the underlying delegate stream, for testing purposes.
|
available, close, mark, markSupported, read, read, read, reset, skip
public static AbortableInputStream create(InputStream delegate, Abortable abortable)
AbortableInputStream
.delegate
- the delegated input streamabortable
- the abortablepublic static AbortableInputStream create(InputStream delegate)
AbortableInputStream
that ignores abort.delegate
- the delegated input streampublic static AbortableInputStream createEmpty()
public void abort()
Abortable
public InputStream delegate()
Copyright © 2022. All rights reserved.