public class ImageTagRegistry extends Object implements ErrorConstants
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
Constructor and Description |
---|
ImageTagRegistry() |
ImageTagRegistry(URLImageCache rawCache,
URLImageCache imgCache) |
Modifier and Type | Method and Description |
---|---|
Filter |
checkCache(ParsedURL purl,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) |
void |
flushCache()
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) |
List |
getRegisteredExtensions()
Returns a List that contains String of all the extensions that
can be handleded by the various registered image format
handlers.
|
List |
getRegisteredMimeTypes()
Returns a List that contains String of all the mime types that
can be handleded by the various registered image format
handlers.
|
static ImageTagRegistry |
getRegistry() |
Filter |
readStream(InputStream is) |
Filter |
readStream(InputStream is,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) |
Filter |
readURL(InputStream is,
ParsedURL purl,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace,
boolean allowOpenStream,
boolean returnBrokenLink) |
Filter |
readURL(ParsedURL purl) |
Filter |
readURL(ParsedURL purl,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace) |
void |
register(RegistryEntry newRE) |
static void |
setBrokenLinkProvider(BrokenLinkProvider provider) |
public ImageTagRegistry()
public ImageTagRegistry(URLImageCache rawCache, URLImageCache imgCache)
public void flushCache()
public void flushImage(ParsedURL purl)
public Filter checkCache(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
public Filter readURL(ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
public Filter readURL(InputStream is, ParsedURL purl, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace, boolean allowOpenStream, boolean returnBrokenLink)
public Filter readStream(InputStream is)
public Filter readStream(InputStream is, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent colorSpace)
public void register(RegistryEntry newRE)
public List getRegisteredExtensions()
public List getRegisteredMimeTypes()
public static ImageTagRegistry getRegistry()
public static Filter getBrokenLinkImage(Object base, String code, Object[] params)
public static void setBrokenLinkProvider(BrokenLinkProvider provider)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.