xmlgraphics-commons 2.1

org.apache.xmlgraphics.image.loader.impl
Class AbstractImageSessionContext.UnrestrictedFallbackResolver

java.lang.Object
  extended by org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.UnrestrictedFallbackResolver
All Implemented Interfaces:
AbstractImageSessionContext.FallbackResolver
Enclosing class:
AbstractImageSessionContext

public static final class AbstractImageSessionContext.UnrestrictedFallbackResolver
extends Object
implements AbstractImageSessionContext.FallbackResolver

An unrestricted resolver that has various contingency mechanisms that access the file-system. This is most suitable for use via the CLI or in environments where controlling I/O isn't a priority.


Constructor Summary
AbstractImageSessionContext.UnrestrictedFallbackResolver()
           
 
Method Summary
 Source createSource(Source source, String uri)
          The fallback mechanism used to create the source which takes in both the Source that the the regular mechanisms attempted to create and the URI that the user provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractImageSessionContext.UnrestrictedFallbackResolver

public AbstractImageSessionContext.UnrestrictedFallbackResolver()
Method Detail

createSource

public Source createSource(Source source,
                           String uri)
The fallback mechanism used to create the source which takes in both the Source that the the regular mechanisms attempted to create and the URI that the user provided.

Specified by:
createSource in interface AbstractImageSessionContext.FallbackResolver
Parameters:
source - the source
uri - the URI provided by the user
Returns:
the source that the contingency mechanism has been acquired

xmlgraphics-commons 2.1

Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.