public interface DriverLocator
A DriverLocator can find and load device driver bundles given a property set. Each driver is represented by a unique ID.
DriverLocator services provide the mechanism for dynamically downloading new device driver bundles into an OSGi device. They are supplied by OSGi providers and encapsulate all provider-specific details related to the location and acquisition of device driver bundles.
Member Summary | |
---|---|
Methods | |
public String | findDrivers(Dictionary) |
Return an array of driver IDs of drivers capable of attaching to a device with the given properties. | |
public InputStream | loadDriver(String) |
Get an InputStream from which the driver bundle providing a driver with the giving ID can be installed. |
public java.lang.String[] findDrivers(java.util.Dictionary props)
Return an array of driver IDs of drivers capable of attaching to a device with the given properties.
Parameters:
props— the properties of the device for which a driver is sought
Returns: the array of driver IDs of drivers capable of attaching to a device with the given properties, or null if this DriverLocator does not know of any such drivers
public java.io.InputStream loadDriver(java.lang.String id)
throws java.io.IOException
Get an InputStream from which the driver bundle providing a driver with the giving ID can be installed.
Parameters:
Returns: the InputStream from which the driver bundle can be installed
Throws:
java.io.IOException— the input stream for the bundle cannot be created
18.224.59.145