Class JDKRegistryEntry
java.lang.Object
org.apache.batik.ext.awt.image.spi.AbstractRegistryEntry
org.apache.batik.ext.awt.image.spi.JDKRegistryEntry
- All Implemented Interfaces:
ErrorConstants
,RegistryEntry
,URLRegistryEntry
This Image tag registy entry is setup to wrap the core JDK
Image stream tools.
- Version:
- $Id: JDKRegistryEntry.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.batik.ext.awt.image.spi.AbstractRegistryEntry
exts, mimeTypes, name, priority
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 TypeMethodDescriptionDecode the URL into a RenderableImageboolean
isCompatibleURL
(ParsedURL purl) Check if the Stream references an image that can be handled by this format handler.loadImage
(Image img, DeferRable dr) Methods inherited from class org.apache.batik.ext.awt.image.spi.AbstractRegistryEntry
getFormatName, getMimeTypes, getPriority, getStandardExtensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.batik.ext.awt.image.spi.RegistryEntry
getFormatName, getMimeTypes, getPriority, getStandardExtensions
-
Field Details
-
PRIORITY
public static final float PRIORITYThe priority of this entry. This entry should in most cases be the last entry. but if one wishes one could set a priority higher and be called afterwords- See Also:
-
-
Constructor Details
-
JDKRegistryEntry
public JDKRegistryEntry()
-
-
Method Details
-
isCompatibleURL
Check if the Stream references an image that can be handled by this format handler. The input stream passed in should be assumed to support mark and reset. If this method throws a StreamCorruptedException then the InputStream will be closed and a new one opened (if possible). This method should only throw a StreamCorruptedException if it is unable to restore the state of the InputStream (i.e. mark/reset fails basically).- Specified by:
isCompatibleURL
in interfaceURLRegistryEntry
- Parameters:
purl
- The URL to inspect.
-
handleURL
Decode the URL into a RenderableImage- Specified by:
handleURL
in interfaceURLRegistryEntry
- Parameters:
purl
- URL of the image.needRawData
- If true the image returned should not have any default color correction the file may specify applied.
-
loadImage
-