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.
@FunctionalInterface public interface ResourceFactoryA ResourceFactory is used for constructing a particular type of resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourcemakeResource(XPathContext context, AbstractResourceCollection.InputDetails details)Create a Resource with given content
-
-
-
Method Detail
-
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
-
-