Package com.azure.android.core.rest
Class StreamResponse
- java.lang.Object
-
- com.azure.android.core.rest.SimpleResponse<java.io.InputStream>
-
- com.azure.android.core.rest.StreamResponse
-
- All Implemented Interfaces:
Response<java.io.InputStream>
,java.io.Closeable
,java.lang.AutoCloseable
public final class StreamResponse extends SimpleResponse<java.io.InputStream> implements java.io.Closeable
REST response with a streaming content.
-
-
Constructor Summary
Constructors Constructor Description StreamResponse(com.azure.android.core.http.HttpRequest request, int statusCode, com.azure.android.core.http.HttpHeaders headers, java.io.InputStream value)
Creates aStreamResponse
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Disposes the connection associated with thisStreamResponse
.-
Methods inherited from class com.azure.android.core.rest.SimpleResponse
getHeaders, getRequest, getStatusCode, getValue
-
-
-
-
Constructor Detail
-
StreamResponse
public StreamResponse(com.azure.android.core.http.HttpRequest request, int statusCode, com.azure.android.core.http.HttpHeaders headers, java.io.InputStream value)
Creates aStreamResponse
.- Parameters:
request
- The request which resulted in this response.statusCode
- The status code of the HTTP response.headers
- The headers of the HTTP response.value
- The content of the HTTP response.
-
-
Method Detail
-
close
public void close()
Disposes the connection associated with thisStreamResponse
.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-