public final class AFPResourceAccessor
extends java.lang.Object
| Constructor and Description |
|---|
AFPResourceAccessor(InternalResourceResolver resourceResolver)
Constructor for resource to be accessed via the
FOUserAgent. |
AFPResourceAccessor(InternalResourceResolver resourceResolver,
java.lang.String baseURI)
Constructor for resource to be accessed via the
FOUserAgent. |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
createInputStream(java.net.URI uri)
Creates an
InputStream given a URI. |
java.net.URI |
resolveURI(java.lang.String uri)
Returns the resolved URI, given the URI of a resource.
|
public AFPResourceAccessor(InternalResourceResolver resourceResolver, java.lang.String baseURI)
FOUserAgent. This
contructor takes a base URI for resolving font resource URIs. So, if fonts need to be
accessed, you can set the FontManager's base URI instead of the
one on the FopFactory.resourceResolver - the resolver of resourcesbaseURI - the custom base URI to resolve relative URIs against (may be null)public AFPResourceAccessor(InternalResourceResolver resourceResolver)
FOUserAgent.resourceResolver - the resolver of resourcespublic java.io.InputStream createInputStream(java.net.URI uri)
throws java.io.IOException
InputStream given a URI.uri - the URI of the InputStreamjava.io.IOException - if an I/O error occurs while creating the InputStream.public java.net.URI resolveURI(java.lang.String uri)
uri - the resource URICopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.