public interface DataSourceResolver
DataSource
based on an URL.Modifier and Type | Method and Description |
---|---|
javax.activation.DataSource |
resolve(String resourceLocation)
Resolves the given resource location to a
DataSource . |
javax.activation.DataSource |
resolve(String resourceLocation,
boolean isLenient)
Resolves the given resource location to a
DataSource . |
javax.activation.DataSource resolve(String resourceLocation) throws IOException
DataSource
.resourceLocation
- the location of the resourceDataSource
IOException
- the resource was not foundjavax.activation.DataSource resolve(String resourceLocation, boolean isLenient) throws IOException
DataSource
.resourceLocation
- the location of the resourceisLenient
- shall we ignore resources not found or complain with an exception?IOException
- resolving the resource failedCopyright © 2001–2016 The Apache Software Foundation. All rights reserved.