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(String name,
String[] exts,
String[] mimeTypes,
MagicNumberRegistryEntry.MagicNumber[] magicNumbers)
Constructor
|
AbstractImageIORegistryEntry(String name,
String ext,
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(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(String name, String[] exts, String[] mimeTypes, MagicNumberRegistryEntry.MagicNumber[] magicNumbers)
name
- Format Nameexts
- Standard set of extensionsmagicNumbers
- array of magic numbers any of which can match.public AbstractImageIORegistryEntry(String name, String ext, String mimeType, int offset, byte[] magicNumber)
name
- Format Nameext
- Standard extensionoffset
- Offset of magic numbermagicNumber
- byte array to match.public Filter handleStream(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 © 2000–2023 Apache Software Foundation. All rights reserved.