public class JDKRegistryEntry extends AbstractRegistryEntry implements URLRegistryEntry
Modifier and Type | Class and Description |
---|---|
static class |
JDKRegistryEntry.MyImgObs |
Modifier and Type | Field and Description |
---|---|
static float |
PRIORITY
The priority of this entry.
|
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
Constructor and Description |
---|
JDKRegistryEntry() |
Modifier and Type | Method and Description |
---|---|
Filter |
handleURL(ParsedURL purl,
boolean needRawData)
Decode the URL into a RenderableImage
|
boolean |
isCompatibleURL(ParsedURL purl)
Check if the Stream references an image that can be handled by
this format handler.
|
java.awt.image.RenderedImage |
loadImage(java.awt.Image img,
DeferRable dr) |
getFormatName, getMimeTypes, getPriority, getStandardExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName, getMimeTypes, getPriority, getStandardExtensions
public static final float PRIORITY
public boolean isCompatibleURL(ParsedURL purl)
isCompatibleURL
in interface URLRegistryEntry
purl
- The URL to inspect.public Filter handleURL(ParsedURL purl, boolean needRawData)
handleURL
in interface URLRegistryEntry
purl
- URL of the image.needRawData
- If true the image returned should not have
any default color correction the file may
specify applied.public java.awt.image.RenderedImage loadImage(java.awt.Image img, DeferRable dr)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.