public final class ResponseInputStream<ResponseT> extends SdkFilterInputStream implements Abortable
If it is not desired to read remaining data from the stream, you can explicitly abort the connection via abort()
.
Note that this will close the underlying connection and require establishing an HTTP connection which may outweigh the
cost of reading the additional data.
in
Constructor and Description |
---|
ResponseInputStream(ResponseT resp,
AbortableInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Can be used to provide abortion logic prior to throwing the
AbortedException.
|
ResponseT |
response() |
abortIfNeeded, available, close, mark, markSupported, read, read, release, reset, skip
read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public ResponseInputStream(ResponseT resp, AbortableInputStream in)
public ResponseT response()
public void abort()
SdkFilterInputStream
abort
in interface Abortable
abort
in class SdkFilterInputStream
Copyright © 2021. All rights reserved.