public class InMemoryCachedUrl extends Url
call, client, headersRequest, headersResponse, KNOWN_HEADERS, request, response, responseCharset, responseCode, responseContentLength, responseContentType, responseMessage, uri, url, USER_AGENT
Constructor and Description |
---|
InMemoryCachedUrl(String url) |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
InputStream |
getInputStream()
Gets the input stream.
|
boolean |
isCached()
Is the url already cached?
|
static boolean |
isCached(String url)
Is the url already cached?
|
addHeader, addHeader, addHeaders, cleanup, download, download, getBytes, getBytesWithRetry, getCharset, getContentEncoding, getContentLength, getHeader, getHeadersResponse, getInputStream, getInputstreamInternal, getInputStreamWithRetry, getStatusCode, getStatusLine, getUrl, isFault, morphStringToUri, setUserAgent, splitHeadersFromUrl, toString
public InMemoryCachedUrl(String url) throws MalformedURLException
MalformedURLException
public InputStream getInputStream() throws IOException, InterruptedException
Url
getInputStream
in class Url
IOException
- Signals that an I/O exception has occurred.InterruptedException
- Signals that the thread has been interruptedpublic static void clearCache()
public static boolean isCached(String url)
url
- the url to checkpublic boolean isCached()
Copyright © 2012–2019 tinyMediaManager. All rights reserved.