|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StreamRegistryEntry
This type of Image tag registy entry is used for most normal image file formats. You are given a markable stream and an opportunity to check if it is "compatible" if you return true then you will likely be asked to provide the decoded image next.
MagicNumberRegistryEntry| Method Summary | |
|---|---|
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(InputStream is,
ParsedURL origURL,
boolean needRawData)
Decode the Stream into a Filter. |
boolean |
isCompatibleStream(InputStream is)
Check if the Stream references an image that can be handled by this format handler. |
| Methods inherited from interface org.apache.batik.ext.awt.image.spi.RegistryEntry |
|---|
getFormatName, getMimeTypes, getPriority, getStandardExtensions |
| Method Detail |
|---|
int getReadlimit()
boolean isCompatibleStream(InputStream is)
throws StreamCorruptedException
StreamCorruptedException
Filter handleStream(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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||