public class DefaultImageSessionContext extends AbstractImageSessionContext
Constructor and Description |
---|
DefaultImageSessionContext(ImageContext context,
java.io.File baseDir)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getBaseDir()
Returns the base directory for resolving relative filenames.
|
ImageContext |
getParentContext()
Returns the session-independent context object which provides configuration information.
|
float |
getTargetResolution()
Returns the resolution (in dpi) of the target device used when painting images.
|
protected javax.xml.transform.Source |
resolveURI(java.lang.String uri)
Attempts to resolve the given URI.
|
createImageInputStream, getSource, isReusable, needSource, newSource, returnSource, toFile
public DefaultImageSessionContext(ImageContext context, java.io.File baseDir)
context
- the parent image contextbaseDir
- the base directory for resolving relative filenamespublic ImageContext getParentContext()
public java.io.File getBaseDir()
protected javax.xml.transform.Source resolveURI(java.lang.String uri)
resolveURI
in class AbstractImageSessionContext
uri
- URI to accessSource
object, or null if the URI
cannot be resolved.public float getTargetResolution()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.