Class ImageTagRegistry
- java.lang.Object
-
- org.apache.batik.ext.awt.image.spi.ImageTagRegistry
-
- All Implemented Interfaces:
ErrorConstants
public class ImageTagRegistry extends java.lang.Object implements ErrorConstants
This class handles the registered Image tag handlers. These are instances of RegistryEntry in this package.- Version:
- $Id: ImageTagRegistry.java 1867375 2019-09-23 14:01:13Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static BrokenLinkProviderbrokenLinkProvider(package private) static BrokenLinkProviderdefaultProvider(package private) java.util.Listentries(package private) java.util.Listextensions(package private) URLImageCacheimgCache(package private) java.util.ListmimeTypes(package private) URLImageCacherawCache(package private) static ImageTagRegistryregistry-
Fields inherited from interface org.apache.batik.ext.awt.image.spi.ErrorConstants
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
-
-
Constructor Summary
Constructors Constructor Description ImageTagRegistry()ImageTagRegistry(URLImageCache rawCache, URLImageCache imgCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FiltercheckCache(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)voidflushCache()Removes all decoded raster images from the cache.voidflushImage(ParsedURL purl)Removes the given URL from the cache.static FiltergetBrokenLinkImage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)java.util.ListgetRegisteredExtensions()Returns a List that contains String of all the extensions that can be handleded by the various registered image format handlers.java.util.ListgetRegisteredMimeTypes()Returns a List that contains String of all the mime types that can be handleded by the various registered image format handlers.static ImageTagRegistrygetRegistry()FilterreadStream(java.io.InputStream is)FilterreadStream(java.io.InputStream is, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)FilterreadURL(java.io.InputStream is, ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace, boolean allowOpenStream, boolean returnBrokenLink)FilterreadURL(ParsedURL purl)FilterreadURL(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)voidregister(RegistryEntry newRE)static voidsetBrokenLinkProvider(BrokenLinkProvider provider)
-
-
-
Field Detail
-
entries
java.util.List entries
-
extensions
java.util.List extensions
-
mimeTypes
java.util.List mimeTypes
-
rawCache
URLImageCache rawCache
-
imgCache
URLImageCache imgCache
-
registry
static ImageTagRegistry registry
-
defaultProvider
static BrokenLinkProvider defaultProvider
-
brokenLinkProvider
static BrokenLinkProvider brokenLinkProvider
-
-
Constructor Detail
-
ImageTagRegistry
public ImageTagRegistry()
-
ImageTagRegistry
public ImageTagRegistry(URLImageCache rawCache, URLImageCache imgCache)
-
-
Method Detail
-
flushCache
public void flushCache()
Removes all decoded raster images from the cache. All Images will be reloaded from the original source if decoded again.
-
flushImage
public void flushImage(ParsedURL purl)
Removes the given URL from the cache. Only the Image associated with that URL will be removed from the cache.
-
checkCache
public Filter checkCache(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
-
readURL
public Filter readURL(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
-
readURL
public Filter readURL(java.io.InputStream is, ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace, boolean allowOpenStream, boolean returnBrokenLink)
-
readStream
public Filter readStream(java.io.InputStream is)
-
readStream
public Filter readStream(java.io.InputStream is, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
-
register
public void register(RegistryEntry newRE)
-
getRegisteredExtensions
public java.util.List getRegisteredExtensions()
Returns a List that contains String of all the extensions that can be handleded by the various registered image format handlers.
-
getRegisteredMimeTypes
public java.util.List getRegisteredMimeTypes()
Returns a List that contains String of all the mime types that can be handleded by the various registered image format handlers.
-
getRegistry
public static ImageTagRegistry getRegistry()
-
getBrokenLinkImage
public static Filter getBrokenLinkImage(java.lang.Object base, java.lang.String code, java.lang.Object[] params)
-
setBrokenLinkProvider
public static void setBrokenLinkProvider(BrokenLinkProvider provider)
-
-