Package net.sf.saxon.lib
Interface ResourceFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A ResourceFactory is used for constructing a particular type of resource
-
Method Summary
Modifier and TypeMethodDescriptionmakeResource
(XPathContext context, AbstractResourceCollection.InputDetails details) Create a Resource with given content
-
Method Details
-
makeResource
Resource makeResource(XPathContext context, AbstractResourceCollection.InputDetails details) throws XPathException Create a Resource with given content- Parameters:
context
- the Saxon evaluation contextdetails
- the stream of bytes making up the binary content of the resource- Returns:
- the resource
- Throws:
XPathException
- if a failure occurs creating the resource
-