DriverLocator

Syntax

public interface DriverLocator

Description

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 StringfindDrivers(Dictionary)
 Return an array of driver IDs of drivers capable of attaching to a device with the given properties.
public InputStreamloadDriver(String)
 Get an InputStream from which the driver bundle providing a driver with the giving ID can be installed.

Methods

findDrivers(Dictionary)
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

loadDriver(String)
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:

id— the ID of the driver that needs to be installed.

Returns: the InputStream from which the driver bundle can be installed

Throws:

java.io.IOException— the input stream for the bundle cannot be created

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.59.145