public class StreamingUrl extends Url
call, client, headersRequest, headersResponse, KNOWN_HEADERS, request, response, responseCharset, responseCode, responseContentLength, responseContentType, responseMessage, uri, url, USER_AGENT
Constructor and Description |
---|
StreamingUrl(String url) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
get the InputStream of the content.
|
protected InputStream |
getInputstreamInternal(okhttp3.Response response) |
addHeader, addHeader, addHeaders, cleanup, download, download, getBytes, getBytesWithRetry, getCharset, getContentEncoding, getContentLength, getHeader, getHeadersResponse, getInputStream, getInputStreamWithRetry, getStatusCode, getStatusLine, getUrl, isFault, morphStringToUri, setUserAgent, splitHeadersFromUrl, toString
public StreamingUrl(String url) throws IOException
IOException
public InputStream getInputStream() throws IOException, InterruptedException
getInputStream
in class Url
IOException
- Signals that an I/O exception has occurred.InterruptedException
- Signals that the thread has been interruptedprotected InputStream getInputstreamInternal(okhttp3.Response response)
getInputstreamInternal
in class Url
Copyright © 2012–2019 tinyMediaManager. All rights reserved.