Class 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 1804130 2017-08-04 14:41:11Z ssteiner $
    • Constructor Detail

      • ImageTagRegistry

        public ImageTagRegistry()
    • 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)
      • 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.
      • getBrokenLinkImage

        public static Filter getBrokenLinkImage​(java.lang.Object base,
                                                java.lang.String code,
                                                java.lang.Object[] params)
      • setBrokenLinkProvider

        public static void setBrokenLinkProvider​(BrokenLinkProvider provider)