Class ImageTagRegistry
java.lang.Object
org.apache.batik.ext.awt.image.spi.ImageTagRegistry
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescription(package private) static BrokenLinkProvider
(package private) static BrokenLinkProvider
(package private) List
(package private) List
(package private) URLImageCache
(package private) List
(package private) URLImageCache
(package private) static ImageTagRegistry
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 -
Method Summary
Modifier and TypeMethodDescriptioncheckCache
(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) void
Removes all decoded raster images from the cache.void
flushImage
(ParsedURL purl) Removes the given URL from the cache.static Filter
getBrokenLinkImage
(Object base, String code, Object[] params) Returns a List that contains String of all the extensions that can be handleded by the various registered image format handlers.Returns a List that contains String of all the mime types that can be handleded by the various registered image format handlers.static ImageTagRegistry
readStream
(InputStream is, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) readURL
(InputStream is, ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace, boolean allowOpenStream, boolean returnBrokenLink) void
register
(RegistryEntry newRE) static void
setBrokenLinkProvider
(BrokenLinkProvider provider)
-
Field Details
-
entries
List entries -
extensions
List extensions -
mimeTypes
List mimeTypes -
rawCache
URLImageCache rawCache -
imgCache
URLImageCache imgCache -
registry
-
defaultProvider
-
brokenLinkProvider
-
-
Constructor Details
-
ImageTagRegistry
public ImageTagRegistry() -
ImageTagRegistry
-
-
Method Details
-
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
Removes the given URL from the cache. Only the Image associated with that URL will be removed from the cache. -
checkCache
-
readURL
-
readURL
-
readURL
public Filter readURL(InputStream is, ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace, boolean allowOpenStream, boolean returnBrokenLink) -
readStream
-
readStream
public Filter readStream(InputStream is, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) -
register
-
getRegisteredExtensions
Returns a List that contains String of all the extensions that can be handleded by the various registered image format handlers. -
getRegisteredMimeTypes
Returns a List that contains String of all the mime types that can be handleded by the various registered image format handlers. -
getRegistry
-
getBrokenLinkImage
-
setBrokenLinkProvider
-