public abstract class AbstractImageIORegistryEntry extends MagicNumberRegistryEntry
MagicNumberRegistryEntry.MagicNumber
PRIORITY
ERR_STREAM_FORMAT_UNREADABLE, ERR_STREAM_UNREADABLE, ERR_URL_FORMAT_UNREADABLE, ERR_URL_UNINTERPRETABLE, ERR_URL_UNREACHABLE, RESOURCES
Constructor and Description |
---|
AbstractImageIORegistryEntry(java.lang.String name,
java.lang.String[] exts,
java.lang.String[] mimeTypes,
MagicNumberRegistryEntry.MagicNumber[] magicNumbers)
Constructor
|
AbstractImageIORegistryEntry(java.lang.String name,
java.lang.String ext,
java.lang.String mimeType,
int offset,
byte[] magicNumber)
Constructor, simplifies construction of entry when only
one extension and one magic number is required.
|
Modifier and Type | Method and Description |
---|---|
Filter |
handleStream(java.io.InputStream inIS,
ParsedURL origURL,
boolean needRawData)
Decode the Stream into a RenderableImage
|
getReadlimit, isCompatibleStream
getFormatName, getMimeTypes, getPriority, getStandardExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName, getMimeTypes, getPriority, getStandardExtensions
public AbstractImageIORegistryEntry(java.lang.String name, java.lang.String[] exts, java.lang.String[] mimeTypes, MagicNumberRegistryEntry.MagicNumber[] magicNumbers)
name
- Format Nameexts
- Standard set of extensionsmagicNumbers
- array of magic numbers any of which can match.public AbstractImageIORegistryEntry(java.lang.String name, java.lang.String ext, java.lang.String mimeType, int offset, byte[] magicNumber)
name
- Format Nameext
- Standard extensionoffset
- Offset of magic numbermagicNumber
- byte array to match.public Filter handleStream(java.io.InputStream inIS, ParsedURL origURL, boolean needRawData)
inIS
- The input stream that contains the image.origURL
- The original URL, if any, for documentation
purposes only. This may be null.needRawData
- If true the image returned should not have
any default color correction the file may
specify applied.Copyright © 2022 Apache Software Foundation. All Rights Reserved.