Download OPERATION MANUAL

Transcript
JavaPOS Driver Kit OPERATION MANUAL
1
2
3
4. Disable a device.
drawer.setDeviceEnabled(flase);
drawer.release();
drawer.close();
Set the DeviceEnabled property to FALSE.
Release the exclusive processing.
Close the device.
*1
*2
For the devices which do not perform an exclusive processing, the release processing is not required.
When the device is closed, an operation speed increases. Please close the device when exiting from the
application, as much as possible. To suspend the device, set the DeviceEnabled property to FALSE.
Supplemental Explanation 1. Method to set an exception
try
{
//A process which uses JavaPOS Device Control
drawer.open(LOGICALNAME);
drawer.claim(100);
drawer.setDeviceEnabled(true);
catch(JposException e)
{
//Describe an exception here.
}
Perform an exception for all cases where the JavaPOS Device Control is used, for example, device
open, claim, call to device-specific method, property handling.
In detail, describe a code which uses JavaPOS Device Control in braces “{}” and a handling when an
exception occurs in braces of catch(JposException ){}. JposException is an exception which is thrown
when an exception occurs with the JavaPOS Device Control.
62
Copyright (C) 2008 TOSHIBA TEC CORPORATION All Rights Reserved