ImageSessionContext
public class DefaultImageSessionContext extends AbstractImageSessionContext
AbstractImageSessionContext.FallbackResolver, AbstractImageSessionContext.RestrictedFallbackResolver, AbstractImageSessionContext.UnrestrictedFallbackResolver
Constructor | Description |
---|---|
DefaultImageSessionContext(ImageContext context,
File baseDir) |
Main constructor.
|
Modifier and Type | Method | Description |
---|---|---|
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 Source |
resolveURI(String uri) |
Attempts to resolve the given URI.
|
createImageInputStream, getSource, isReusable, needSource, newSource, returnSource, toFile
public DefaultImageSessionContext(ImageContext context, File baseDir)
context
- the parent image contextbaseDir
- the base directory for resolving relative filenamespublic ImageContext getParentContext()
public File getBaseDir()
protected Source resolveURI(String uri)
resolveURI
in class AbstractImageSessionContext
uri
- URI to accessSource
object, or null if the URI
cannot be resolved.public float getTargetResolution()
Copyright © 2018 Apache Software Foundation. All rights reserved.