Interface HTTPImageInputStreamClient
public interface HTTPImageInputStreamClient
Adapts an HTTP client to work with
HTTPImageInputStream
. The client
should be initialized to the URI of the resource that the stream is supposed
to access.-
Method Summary
-
Method Details
-
getReference
Reference getReference()- Returns:
- URI of the resource.
-
sendHEADRequest
- Returns:
- Response. In particular, the
status
is set, and Accept-Ranges and Content-Lengthheaders
are included if the server sent them. - Throws:
IOException
- upon failure to receive a valid response (not a response with an error status code).
-
sendGETRequest
- Parameters:
range
- Byte range to request.- Returns:
- Same as
sendHEADRequest()
, but thebody
is also included. - Throws:
IOException
- upon failure to receive a valid response (not a response with an error status code).
-