public class ThumbnailRegistryEntry extends AbstractRegistryEntry implements URLRegistryEntry, ParsedURLProtocolHandler
Modifier and Type | Class and Description |
---|---|
(package private) class |
ThumbnailRegistryEntry.InternalParsedURLData
URL representation for internal URLs.
|
Modifier and Type | Field and Description |
---|---|
private static int |
counter
Object counter
|
private static TIntObjectMap<SoftReference<RenderedImage>> |
images
The image cache.
|
static String |
INTERNAL_MIME_TYPE
Mime type
|
static String |
INTERNAL_PREFIX
ELKI internal thumbnail protocol prefix
|
static String |
INTERNAL_PROTOCOL
ELKI internal thumbnail protocol id.
|
private static Logging |
LOG
The logger class.
|
static float |
PRIORITY
The priority of this entry.
|
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
Constructor and Description |
---|
ThumbnailRegistryEntry()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getProtocolHandled() |
static Filter |
handleURL(ParsedURL url)
Statically handle the URL access.
|
Filter |
handleURL(ParsedURL url,
boolean needRawData) |
boolean |
isCompatibleURL(ParsedURL url) |
static boolean |
isCompatibleURLStatic(ParsedURL url)
Test for a compatible URL.
|
ParsedURLData |
parseURL(ParsedURL basepurl,
String urlStr) |
ParsedURLData |
parseURL(String urlStr) |
static int |
registerImage(RenderedImage img)
Put an image into the repository (note: the repository is only keeping a
weak reference!)
|
getFormatName, getMimeTypes, getPriority, getStandardExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName, getMimeTypes, getPriority, getStandardExtensions
public static final String INTERNAL_PROTOCOL
public static final String INTERNAL_PREFIX
public static final String INTERNAL_MIME_TYPE
public static final float PRIORITY
private static final Logging LOG
private static final TIntObjectMap<SoftReference<RenderedImage>> images
private static int counter
public ThumbnailRegistryEntry()
public static int registerImage(RenderedImage img)
img
- Image to putpublic boolean isCompatibleURL(ParsedURL url)
isCompatibleURL
in interface URLRegistryEntry
public static boolean isCompatibleURLStatic(ParsedURL url)
url
- URLpublic Filter handleURL(ParsedURL url, boolean needRawData)
handleURL
in interface URLRegistryEntry
public static Filter handleURL(ParsedURL url)
url
- URL to accesspublic ParsedURLData parseURL(String urlStr)
parseURL
in interface ParsedURLProtocolHandler
public ParsedURLData parseURL(ParsedURL basepurl, String urlStr)
parseURL
in interface ParsedURLProtocolHandler
public String getProtocolHandled()
getProtocolHandled
in interface ParsedURLProtocolHandler
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.