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.
|
CardCountInfo |
getCardCount()
Returns the printer's total card count values.
|
MagneticEncoderInfo |
getMagneticEncoderConfiguration()
Returns the printer's magnetic encoder configuration.
|
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.
|
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.
|
Map<String,String> |
getSensorStates()
Returns the printer's sensor states.
|
Map<String,String> |
getSensorValues()
Returns the printer's sensor values.
|
SmartCardInfo |
getSmartCardConfiguration()
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
|
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.
|
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 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 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.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.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.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.SmartCardInfo getSmartCardConfiguration() 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 there is a printer error or ocpDisplay
is invalid.void updateFirmware(String firmwareFilePath) throws FileNotFoundException, ConnectionException, ZebraCardException
firmwareFilePath
- full path to the firmware file.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, TimeoutException, 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.FileNotFoundException
- if the firmwareFilePath
is not found.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.
© 2016 ZIH Corp. All Rights Reserved.