|
|||||||||||
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.ConnectionParameters
com.sap.ip.me.api.pios.scanner.ScannerParameters
This class represents the scanner parameters required to open a scanner connection. Use a ScannerParameters class instance as a parameter to the open method of the Connector to create a scanner connection.
Example: Set scanner parameters and open a scanner connection.
Connector connector = Connector.getInstance();
DriverInfo[] scanners = connector.listDrivers(ConnectionType.SCANNER);
ScannerParameters parameters = new ScannerParameters(scanners[0]);
parameters.setMode(ScannerParameters.SCAN_AWARE);
ScannerConnection scanner = (ScannerConnection)connector.open(parameters);
ConnectionParameters
,
DriverInfo
,
Enumeration
,
ScannerConnection
Field Summary | |
static int |
SCAN_AWARE
Constant to indicate scanning aware mode. |
static int |
WEDGE
Constant to indicate scanner wedge mode. |
Constructor Summary | |
ScannerParameters(DriverInfo info)
Creates a new ScannerParameters object given the driver info assuming the aware mode. |
Method Summary | |
int |
getMode()
Returns the scanner connection mode. |
void |
setMode(int mode)
Sets the scanner connection mode. |
Methods inherited from class com.sap.ip.me.api.pios.connection.ConnectionParameters |
getConnection, getDriver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SCAN_AWARE
public static final int WEDGE
Constructor Detail |
public ScannerParameters(DriverInfo info)
info
- the driver information objectDriverInfo
Method Detail |
public int getMode()
public void setMode(int mode)
mode
- the scanner connection mode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |