|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.afp.util.AFPResourceAccessor
public final class AFPResourceAccessor
Defines an interface through which external resource objects can be accessed.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 resources| Method Detail |
|---|
public java.io.InputStream createInputStream(java.net.URI uri)
throws java.io.IOException
InputStream given a URI.
uri - the URI of the InputStream
java.io.IOException - if an I/O error occurs while creating the InputStream.public java.net.URI resolveURI(java.lang.String uri)
uri - the resource URI
|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||