org.apache.batik.svggen
public abstract class ImageCacher extends Object implements SVGSyntax, ErrorConstants
Nested Class Summary | |
---|---|
static class | ImageCacher.Embedded
Cache implementation for images embedded in the SVG file. |
static class | ImageCacher.External
Cache implementation for file-based images. |
Constructor Summary | |
---|---|
ImageCacher()
Creates an ImageCacher. | |
ImageCacher(DOMTreeManager domTreeManager)
Creates an ImageCacher.
|
Method Summary | |
---|---|
DOMTreeManager | getDOMTreeManager() |
String | lookup(ByteArrayOutputStream os, int width, int height, SVGGeneratorContext ctx)
Checks if the image is already in the cache, and
adds it if not. |
void | setDOMTreeManager(DOMTreeManager domTreeManager)
Sets the DOMTreeManager this cacher should work on.
|
Parameters: domTreeManager the DOMTreeManager for the tree this cacher works on
Parameters: os the image as a byte stream width the width of the image height the height of the image ctx the SVGGeneratorContext
Returns: a URI for the image
Throws: SVGGraphics2DIOException if an error occurs during image file i/o
Parameters: domTreeManager the DOMTreeManager for the tree this cacher works on