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.
-
Field Summary
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)
-
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
-