|
xmlgraphics-commons 1.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to tell the cache which images are used by a session (in FOP that would be a rendering run). Images access within a session get a hard reference so they cannot be discarded. That could increase memory usage but helps with performance because the images don't get unloaded between layout and rendering which would mean that they have to be reloaded.
Method Summary | |
ImageContext |
getParentContext()
Returns the session-independent context object which provides configuration information. |
javax.xml.transform.Source |
getSource(java.lang.String uri)
Returns a Source object for a URI. |
float |
getTargetResolution()
Returns the resolution (in dpi) of the target device used when painting images. |
javax.xml.transform.Source |
needSource(java.lang.String uri)
Returns a Source object for a URI. |
javax.xml.transform.Source |
newSource(java.lang.String uri)
Attempts to create a Source object from the given URI. |
void |
returnSource(java.lang.String uri,
javax.xml.transform.Source src)
Returns a Source object to a pool. |
Method Detail |
public ImageContext getParentContext()
public float getTargetResolution()
public javax.xml.transform.Source newSource(java.lang.String uri)
uri
- URI to access
Source
object, or null if the URI
cannot be resolved.public javax.xml.transform.Source getSource(java.lang.String uri)
returnSource(String, Source)
method).
uri
- the URI of the image
public javax.xml.transform.Source needSource(java.lang.String uri) throws java.io.FileNotFoundException
FileNotFoundException
is thrown.
uri
- the URI of the image
java.io.FileNotFoundException
- if the image cannot be foundpublic void returnSource(java.lang.String uri, javax.xml.transform.Source src)
uri
- the URI of the imagesrc
- the Source object belonging to the URI
|
xmlgraphics-commons 1.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |