public interface DeviceUtil
| Modifier and Type | Method and Description | 
|---|---|
| AlarmInfo | checkForAlarm()Gets the printer's current alarm code. | 
| void | clearOCPDisplay(boolean lockOCP)Clears any custom line data from the OCP and returns it to the main view. ZXP Series 1 and 3 and ZMotif series 7, 8, and 9 printers only. | 
| CardCountInfo | getCardCount()Returns the printer's total card count values. | 
| MagneticEncoderInfo | getMagneticEncoderConfiguration()Returns the printer's magnetic encoder configuration. | 
| java.util.List<MediaInfo> | getMediaInformation()Returns a List of the printer's installed media information. | 
| OCPDisplayInfo | getOCPDisplay()Returns the line data currently displayed on the printer's OCP. ZXP Series 1 and 3 and ZMotif series 7, 8, and 9 printers only. | 
| TransferType | getPrintCapability()Returns the transfer type of the printer. | 
| PrinterInfo | getPrinterInformation()Returns the printer's specific device information. | 
| PrinterStatusInfo | getPrinterStatus()Returns the printer's current status information. | 
| java.util.Map<String,String> | getSensorStates()Returns the printer's sensor states. | 
| java.util.Map<String,String> | getSensorValues()Returns the printer's sensor values. | 
| SmartCardInfo | getSmartCardConfiguration()Deprecated. 
 | 
| java.util.Map<String,String> | getSmartCardConfigurations()Returns the printer's smart card configuration. | 
| boolean | hasLaminator()Returns true if printer includes a laminator. | 
| boolean | hasMagneticEncoder()Returns true if printer includes magnetic encoder | 
| boolean | hasSmartCardEncoder()Returns true if printer includes a smart card encoder. | 
| void | registerAlarmHandler(AlarmHandler alarmHandler)Registers a callback routine for asynchronous reporting of printer alarm conditions. | 
| void | reset()Resets the printer. | 
| void | setOCPDisplay(OCPDisplayInfo ocpDisplay)Displays the specified line data on the printer's OCP. ZXP Series 1 and 3 and ZMotif series 7, 8, and 9 printers only. | 
| void | updateFirmware(String firmwareFilePath)Updates the printers firmware. | 
| void | updateFirmware(String firmwareFilePath,
              CardFirmwareUpdateHandler handler)Updates the printers firmware. | 
AlarmInfo checkForAlarm() throws ConnectionException, ZebraCardException
ZebraCardErrors for list of error codes and descriptionsConnectionException - if their is an error communicating with the printer.ZebraCardException - if the device is busy.void clearOCPDisplay(boolean lockOCP)
                     throws ConnectionException,
                            SettingsException,
                            ZebraCardException
lockOCP - true to lock the printer's OCP display.ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while clearing the OCP display.ZebraCardException - if the printer model is not supported or the device is busy.CardCountInfo getCardCount() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the card count.ZebraCardException - if the device is busy.MagneticEncoderInfo getMagneticEncoderConfiguration() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the magnetic encoder configuration.ZebraCardException - if the device is busy.OCPDisplayInfo getOCPDisplay() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the OCP display information.ZebraCardException - if the printer model is not supported or the device is busy.PrinterInfo getPrinterInformation() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer information.ZebraCardException - if the device is busy.PrinterStatusInfo getPrinterStatus() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's status.ZebraCardException - if the device is busy.java.util.List<MediaInfo> getMediaInformation() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the media information.ZebraCardException - if the device is busy.java.util.Map<String,String> getSensorStates()
                                             throws ConnectionException,
                                                    SettingsException,
                                                    ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving sensor states.ZebraCardException - if the device is busy.java.util.Map<String,String> getSensorValues()
                                             throws ConnectionException,
                                                    SettingsException,
                                                    ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the sensor values.ZebraCardException - if the device is busy.@Deprecated SmartCardInfo getSmartCardConfiguration() throws ConnectionException, SettingsException, ZebraCardException
getSmartCardConfigurations()ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer.ZebraCardException - if the printer model is invalid or if the device is busy.java.util.Map<String,String> getSmartCardConfigurations()
                                                        throws ConnectionException,
                                                               SettingsException,
                                                               ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer.ZebraCardException - if the device is busy.void registerAlarmHandler(AlarmHandler alarmHandler)
alarmHandler - An instance that is used to handle printer alarm conditions.void reset()
           throws ConnectionException,
                  ZebraCardException
ConnectionException - if there is an error communicating with the printer.ZebraCardException - if the device is busy.void setOCPDisplay(OCPDisplayInfo ocpDisplay) throws ConnectionException, SettingsException, ZebraCardException
ocpDisplay - an instance populated with the OCP line data to be displayed.ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's OCP display information.ZebraCardException - if the printer model is not supported, there is a printer error, or ocpDisplay is invalid.void updateFirmware(String firmwareFilePath)
                    throws java.io.FileNotFoundException,
                           ConnectionException,
                           ZebraCardException
firmwareFilePath - full path to the firmware file.java.io.FileNotFoundException - if the firmwareFilePath is not found.ConnectionException - if there is an error communicating with the printer.ZebraCardException - if there is a printer error or firmwareFilePath is invalid.void updateFirmware(String firmwareFilePath,
                  CardFirmwareUpdateHandler handler)
                    throws ConnectionException,
                           DiscoveryException,
                           java.util.concurrent.TimeoutException,
                           java.io.FileNotFoundException,
                           ZebraCardException
firmwareFilePath - Full path to the firmware file.handler - Callback for firmware status updates.ConnectionException - if there is an error communicating with the printer.DiscoveryException - if attempting to reconnect fails.java.io.FileNotFoundException - if the firmwareFilePath is not found.java.util.concurrent.TimeoutException - if the firmware update times out.ZebraCardException - if there is a printer error or firmwareFilePath is invalid.boolean hasMagneticEncoder()
                           throws ConnectionException,
                                  SettingsException,
                                  ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's configuration information.ZebraCardException - if the device is busy.TransferType getPrintCapability() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's transfer type.ZebraCardException - if the device is busy.boolean hasLaminator()
                     throws ConnectionException,
                            SettingsException,
                            ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's configuration information.ZebraCardException - if the device is busy.boolean hasSmartCardEncoder()
                            throws ConnectionException,
                                   SettingsException,
                                   ZebraCardException
ConnectionException - if there is an error communicating with the printer.SettingsException - if an error occurs while retrieving the printer's configuration information.ZebraCardException - if the device is busy.
				© 2016 ZIH Corp. All Rights Reserved.