public interface JobUtilZmotif
Modifier and Type | Method and Description |
---|---|
void |
abort(boolean reject)
Aborts a print job.
|
ReservationInfo |
getReservationStatus(int reservationToken)
Queries the printer and returns the current status of the printer from the supplied reservation token.
|
java.util.List<String> |
getTestPrintImageNames()
Queries the printer and returns a list of available test print image names.
ZC Series printers only. |
ReservationInfo |
isDeviceInSession()
Queries the printer and returns whether the printer is currently in session.
|
int |
printTestCard(byte imageNumber,
int copies,
boolean dualSided)
Prints the specified test image.
ZMotif series 7, 8, and 9 printers only. |
void |
printTestCard(String testPrintName)
Prints the specified test image.
ZC Series printers only. |
BarcodeReadInfo |
readBarcodeData()
Sends a job to the printer to scan and return the barcode data from a card.
|
void |
reject()
Rejects a card from the printer's home position.
|
void |
releaseDeviceReservation(int reservationToken)
Releases the reservation session associated with the reservationToken.
|
int |
reserveDevice(ReservationType type)
Requests a reservation to a shared printer.
|
void |
retrySmartCard(SmartCardType type)
Repositions a smart card that is already present at the encoder.
|
void abort(boolean reject) throws ConnectionException, ZebraCardException
reject
- ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.ReservationInfo getReservationStatus(int reservationToken) throws ConnectionException, ZebraCardException, ZebraIllegalArgumentException
reservationToken
- printer's supplied reservation token.ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.ZebraIllegalArgumentException
- if the reservationToken
is invalid.ReservationInfo isDeviceInSession() throws ConnectionException, ZebraCardException
ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.BarcodeReadInfo readBarcodeData() throws ConnectionException, SettingsException, ZebraCardException, java.util.concurrent.TimeoutException
ConnectionException
- if the device is busy or there is a error communicating with the printer.SettingsException
- if an error occurs while reading the barcode data.java.util.concurrent.TimeoutException
- if the operation times out before it completes.ZebraCardException
- if a printer error occurs.void reject() throws ConnectionException, ZebraCardException
ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.void releaseDeviceReservation(int reservationToken) throws ConnectionException, ZebraCardException, ZebraIllegalArgumentException
reservationToken
- printer's supplied reservation token.ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.ZebraIllegalArgumentException
- if the reservationToken
is invalid.void retrySmartCard(SmartCardType type) throws ConnectionException, SettingsException, ZebraCardException, ZebraIllegalArgumentException
type
- the type of smart card.ConnectionException
- if the device is busy or there is a error communicating with the printer.SettingsException
- if an error occurs while repositioning the smart card.ZebraCardException
- if a printer error occurs.ZebraIllegalArgumentException
- if the type
is invalid.int reserveDevice(ReservationType type) throws ConnectionException, ZebraCardException
type
- the type of reservation to request.ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if a printer error occurs.int printTestCard(byte imageNumber, int copies, boolean dualSided) throws ConnectionException, ZebraCardException, ZebraIllegalArgumentException
imageNumber
- test image number.copies
- number of copies to print.dualSided
- true indicates the test image should be printed dual sided.ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if the printer model is not supported or a printer error occurs.ZebraIllegalArgumentException
- if the imageNumber
, copies
, or dualSided
are invalid.java.util.List<String> getTestPrintImageNames() throws ConnectionException, SettingsException, ZebraCardException
ConnectionException
- if the device is busy or there is a error communicating with the printer.SettingsException
- if an error occurs while retrieving the test print image names.ZebraCardException
- if the printer model is not supported or a printer error occurs.void printTestCard(String testPrintName) throws ConnectionException, ZebraCardException, ZebraIllegalArgumentException
testPrintName
- test print image name.
getTestPrintImageNames()
to retrieve the list of available test print image names.ConnectionException
- if the device is busy or there is a error communicating with the printer.ZebraCardException
- if the printer model is not supported or a printer error occurs.ZebraIllegalArgumentException
- if testPrintName
is invalid.
© 2016 ZIH Corp. All Rights Reserved.