public class DefaultImageSessionContext extends AbstractImageSessionContext
AbstractImageSessionContext.FallbackResolver, AbstractImageSessionContext.RestrictedFallbackResolver, AbstractImageSessionContext.UnrestrictedFallbackResolver| 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 |
getSourceResolution()
Returns the resolution (in dpi) of the source device used when painting images.
|
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, toFilepublic 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 AbstractImageSessionContexturi - URI to accessSource object, or null if the URI
cannot be resolved.public float getTargetResolution()
public float getSourceResolution()
ImageSessionContextCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.