fop 0.92beta

org.apache.fop.render
Class DefaultFontResolver

java.lang.Object
  |
  +--org.apache.fop.render.DefaultFontResolver
All Implemented Interfaces:
FontResolver

public class DefaultFontResolver
extends java.lang.Object
implements FontResolver

Default FontResolver implementation which uses the FOUserAgent to resolve font URIs.


Constructor Summary
DefaultFontResolver(FOUserAgent userAgent)
          Main constructor.
 
Method Summary
 javax.xml.transform.Source resolve(java.lang.String href)
          Called to resolve an URI to a Source instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFontResolver

public DefaultFontResolver(FOUserAgent userAgent)
Main constructor.
Parameters:
userAgent - the user agent
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href)
Description copied from interface: FontResolver
Called to resolve an URI to a Source instance. The base URI needed by the URIResolver's resolve() method is defined to be implicitely available in this case. If the URI cannot be resolved, null is returned and it is assumed that the FontResolver implementation already warned the user about the problem.
Specified by:
resolve in interface FontResolver
See Also:
FontResolver.resolve(java.lang.String)

fop 0.92beta

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