public interface StreamRegistryEntry extends RegistryEntry
MagicNumberRegistryEntry
Modifier and Type | Method and Description |
---|---|
int |
getReadlimit()
returns the number of bytes that need to be
supported by mark on the InputStream for this
to check the stream for compatibility.
|
Filter |
handleStream(java.io.InputStream is,
ParsedURL origURL,
boolean needRawData)
Decode the Stream into a Filter.
|
boolean |
isCompatibleStream(java.io.InputStream is)
Check if the Stream references an image that can be handled by
this format handler.
|
getFormatName, getMimeTypes, getPriority, getStandardExtensions
int getReadlimit()
boolean isCompatibleStream(java.io.InputStream is) throws java.io.StreamCorruptedException
java.io.StreamCorruptedException
Filter handleStream(java.io.InputStream is, ParsedURL origURL, boolean needRawData)
This should only return a broken link image when the image is clearly of this format, but is unreadable for some reason.
is
- 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.