public interface DataSourceResolver
DataSource
based on an URL.Modifier and Type | Method and Description |
---|---|
javax.activation.DataSource |
resolve(java.lang.String resourceLocation)
Resolves the given resource location to a
DataSource . |
javax.activation.DataSource |
resolve(java.lang.String resourceLocation,
boolean isLenient)
Resolves the given resource location to a
DataSource . |
javax.activation.DataSource resolve(java.lang.String resourceLocation) throws java.io.IOException
DataSource
.resourceLocation
- the location of the resourceDataSource
java.io.IOException
- the resource was not foundjavax.activation.DataSource resolve(java.lang.String resourceLocation, boolean isLenient) throws java.io.IOException
DataSource
.resourceLocation
- the location of the resourceisLenient
- shall we ignore resources not found or complain with an exception?java.io.IOException
- resolving the resource failedCopyright © 2010 - 2020 Adobe. All Rights Reserved