|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.pios.connection.DriverInfo
Represents a peripheral driver and can be used to obtain information of
a driver before using it. Used by the ConnectionParameters class to select a
driver for the connection to a peripheral.
ConnectionParameters| Constructor Summary | |
protected |
DriverInfo(java.lang.String name,
java.lang.String description,
java.lang.Object connectionType)
Creates a new DriverInfo object given the driver name, description, and connectionType. |
| Method Summary | |
protected java.util.Properties |
getAttributes()
Returns the driver attributes. |
DriverConfigurationManager |
getConfigurationManager()
Returns the configuration manager for this driver. |
ConnectionType |
getConnectionType()
Returns the connection type. |
java.lang.String |
getDescription()
Returns the driver description. |
java.lang.String |
getName()
Returns the driver name. |
java.lang.String |
getVersion()
Returns the driver version. |
boolean |
isAttributeSupported(java.lang.String attributeName)
Determine if a required functionality is supported by driver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DriverInfo(java.lang.String name,
java.lang.String description,
java.lang.Object connectionType)
name - the driver namedescription - the driver descriptionconnectionType - type of connection| Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public ConnectionType getConnectionType()
protected java.util.Properties getAttributes()
throws PIOSException
PIOSException - thrown if the property file is missing
or corruptedProperties
public boolean isAttributeSupported(java.lang.String attributeName)
throws PIOSException
Connector connector = Connector.getInstance();
DriverInfo[] printers = connector.listDrivers(ConnectionType.PRINTER);
if (printers[0].isAttributeSupported(PrinterConnection.Attributes.LINE_MODE)) {
//Add some code here
}
attributeName - name of the attribute
PIOSException - thrown if unable to get attribute value
public DriverConfigurationManager getConfigurationManager()
throws ConfigurationException
ConfigurationException - thrown if there is an error while
getting the configuration managerConfigurationManager
public java.lang.String getVersion()
throws PIOSException
PIOSException - thrown when unable to get version value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||