| |
|
| org.apache.cocoon.components.url.StreamJDKRegistryEntry
StreamJDKRegistryEntry | public class StreamJDKRegistryEntry extends AbstractRegistryEntry implements URLRegistryEntry(Code) | | This Image tag registy entry is setup to wrap the core JDK Image stream tools.
version: CVS $Id: StreamJDKRegistryEntry.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public Filter | handleURL(ParsedURL purl, boolean needRawData) Decode the URL into a RenderableImage
Parameters: purl - The URLto decode Parameters: needRawData - If true the image returned should not haveany default color correction the file may specify applied. | public boolean | isCompatibleURL(ParsedURL purl) Check if the Stream references an image that can be handled by
this format handler. | public RenderedImage | loadImage(Image img) |
PRIORITY | final public static float PRIORITY(Code) | | The 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
|
StreamJDKRegistryEntry | public StreamJDKRegistryEntry()(Code) | | |
handleURL | public Filter handleURL(ParsedURL purl, boolean needRawData)(Code) | | Decode the URL into a RenderableImage
Parameters: purl - The URLto decode Parameters: needRawData - If true the image returned should not haveany default color correction the file may specify applied. |
isCompatibleURL | public boolean isCompatibleURL(ParsedURL purl)(Code) | | 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).
|
loadImage | public RenderedImage loadImage(Image img)(Code) | | |
|
|
|