|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.afp.util.SimpleResourceAccessor
public class SimpleResourceAccessor
Simple implementation of the ResourceAccessor
interface for access relative to a
base URI.
Constructor Summary | |
---|---|
SimpleResourceAccessor(java.io.File baseDir)
Creates a new simple resource accessor. |
|
SimpleResourceAccessor(java.net.URI baseURI)
Creates a new simple resource accessor. |
Method Summary | |
---|---|
java.io.InputStream |
createInputStream(java.net.URI uri)
Creates a new InputStream for the given URI that allows read access to an external
resource. |
java.net.URI |
getBaseURI()
Returns the base URI. |
protected java.net.URI |
resolveAgainstBase(java.net.URI uri)
Resolve the given URI against the baseURI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleResourceAccessor(java.net.URI baseURI)
baseURI
- the base URI to resolve relative URIs against (may be null)public SimpleResourceAccessor(java.io.File baseDir)
baseDir
- the base directory to resolve relative filenames against (may be null)Method Detail |
---|
public java.net.URI getBaseURI()
protected java.net.URI resolveAgainstBase(java.net.URI uri)
uri
- the URI to resolve
public java.io.InputStream createInputStream(java.net.URI uri) throws java.io.IOException
InputStream
for the given URI that allows read access to an external
resource.
createInputStream
in interface ResourceAccessor
uri
- the URI of an external resource.
java.io.IOException
- if an I/O error occurs while opening the resource
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |