AbstractImageSessionContext
, DefaultImageSessionContext
public interface ImageSessionContext
Modifier and Type | Method | Description |
---|---|---|
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.
|
ImageContext getParentContext()
float getTargetResolution()
javax.xml.transform.Source newSource(java.lang.String uri)
uri
- URI to accessSource
object, or null if the URI
cannot be resolved.javax.xml.transform.Source getSource(java.lang.String uri)
returnSource(String, Source)
method).uri
- the URI of the imagejavax.xml.transform.Source needSource(java.lang.String uri) throws java.io.FileNotFoundException
FileNotFoundException
is thrown.uri
- the URI of the imagejava.io.FileNotFoundException
- if the image cannot be foundvoid returnSource(java.lang.String uri, javax.xml.transform.Source src)
uri
- the URI of the imagesrc
- the Source object belonging to the URICopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.