Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xmlgraphics.io
Interface ResourceResolver

All Known Implementing Classes:
  URIResolverAdapter

    public interface ResourceResolver

Implementations of this resource resolver allow XGC users to control the URI resolution mechanism. All resource and output stream acquisition goes through this when its implementation is given to the org.apache.fop.apps.EnvironmentProfile.

Method Summary
`OutputStream` | `getOutputStream(URI uri)` Gets an output stream of a given URI.
`Resource` | `getResource(URI uri)` Get a resource given the URI pointing to said resource.

Method Detail

### getResource

    Resource getResource(URI uri)
                         throws IOException

  Get a resource given the URI pointing to said resource.

  Parameters:
    `uri` - the resource URI
  Returns:
    the resource
  Throws:
    `IOException` - if an I/O error occured during resource acquisition

### getOutputStream

    OutputStream getOutputStream(URI uri)
                                 throws IOException

  Gets an output stream of a given URI.

  Parameters:
    `uri` - the output stream URI
  Returns:
    the output stream
  Throws:
    `IOException` - if an I/O error occured while creating an output stream

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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