public interface JobUtil
Modifier and Type | Method and Description |
---|---|
void |
cancel(int jobID)
Cancels all jobs or a specific job.
|
void |
destroy()
Clean up all the resources and stop any running threads.
ZXP Series 1/3: calling destroy with pending or active jobs will result in all jobs being canceled. |
void |
ejectCard()
Sends the card to the eject bin.
|
java.util.List<JobStatus> |
getJobList()
Returns a list of all the current jobs in the printer's queue.
|
JobStatusInfo |
getJobStatus(int jobId)
Returns the job status for the specified
jobId . |
int |
magEncode(int copies,
String track1Data,
String track2Data,
String track3Data)
Encodes a magnetic card for the current job.
|
int |
positionCard()
Moves a card from the specified source to the specified destination.
|
int |
print(int copies,
java.util.List<GraphicsInfo> graphicsData)
Prints a card with the images provided.
|
int |
printAndMagEncode(int copies,
java.util.List<GraphicsInfo> graphicsData,
String track1Data,
String track2Data,
String track3Data)
Encodes the magnetic encoding data and prints a card with the images provided.
|
int |
printTemplate(int copies,
TemplateJob jobData)
Prints a card with the provided template.
|
MagTrackData |
readMagData(java.util.EnumSet<DataSource> tracksToRead)
Reads the data from a magnetically encoded card.
|
MagTrackData |
readMagData(java.util.EnumSet<DataSource> tracksToRead,
boolean isVerbose)
Reads the data from a magnetically encoded card.
|
void |
reprint(int copies)
Reprints the last rendered job.
|
void |
resume()
Resumes the processing of a held job such as a smart card encoding job.
|
void |
setGraphics(ZebraGraphicsI zebraCardGraphics)
Sets the
zebraCardGraphics object. |
int |
smartCardEncode(int copies)
Positions a card at the smartcard station, suspends the job to allow the card to be read or encoded, and waits for
resume() to be called before
completing the job. |
void cancel(int jobID) throws ConnectionException, ZebraCardException
jobID
- the ID of the job to cancel.
ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs.void ejectCard() throws ConnectionException, ZebraCardException
ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs.java.util.List<JobStatus> getJobList() throws ConnectionException, ZebraCardException
ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs.JobStatusInfo getJobStatus(int jobId) throws ConnectionException, ZebraCardException
jobId
.
jobId
- ID number of the job.ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs or jobId
is invalid.int positionCard() throws ConnectionException, SettingsException, ZebraCardException
CardSource
and CardDestination
can be individually set prior to calling this method otherwise the default values of
CardSource.Feeder
and CardDestination.Eject
will be used.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs.int magEncode(int copies, String track1Data, String track2Data, String track3Data) throws ConnectionException, SettingsException, ZebraCardException
copies
- number of copies to be printed.track1Data
- data to be encoded on track 1.track2Data
- data to be encoded on track 2.track3Data
- data to be encoded on track 3.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs or if the specified arguments are invalid.int print(int copies, java.util.List<GraphicsInfo> graphicsData) throws ConnectionException, SettingsException, ZebraCardException
copies
- number of copies to be printed.graphicsData
- List containing details of the images to be printed.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs or if the specified arguments are invalid.int printTemplate(int copies, TemplateJob jobData) throws ConnectionException, SettingsException, ZebraCardException
copies
- number of copies to be printed.jobData
- instance containing details of the job to be executed.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs or if the specified arguments are invalid.int printAndMagEncode(int copies, java.util.List<GraphicsInfo> graphicsData, String track1Data, String track2Data, String track3Data) throws ConnectionException, SettingsException, ZebraCardException
copies
- number of copies to be printed.graphicsData
- List containing details of the images to be printed.track1Data
- data to be encoded on track 1.track2Data
- data to be encoded on track 2.track3Data
- data to be encoded on track 3.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs or if the specified arguments are invalid.MagTrackData readMagData(java.util.EnumSet<DataSource> tracksToRead) throws ConnectionException, SettingsException, ZebraCardException, java.util.concurrent.TimeoutException
tracksToRead
- specifies which tracks to read data from.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.java.util.concurrent.TimeoutException
- if the process times out trying to read the data.ZebraCardException
- if a printer error occurs or tracksToRead
is invalid.MagTrackData readMagData(java.util.EnumSet<DataSource> tracksToRead, boolean isVerbose) throws ConnectionException, SettingsException, java.util.concurrent.TimeoutException, ZebraCardException
tracksToRead
- specifies which tracks to read data from.isVerbose
- true to increase the amount of detail presented to the user.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.java.util.concurrent.TimeoutException
- if the process times out trying to read the data.ZebraCardException
- if a printer error occurs or tracksToRead
is invalid.void reprint(int copies) throws ConnectionException, ZebraCardException
copies
- number of copies to reprint.ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs or copies
is invalid.void resume() throws ZebraCardException, ConnectionException
ConnectionException
- if the device is busy or there is an error communicating with the printer.ZebraCardException
- if a printer error occurs.int smartCardEncode(int copies) throws ConnectionException, SettingsException, ZebraCardException
resume()
to be called before
completing the job.
copies
- number of cards to be encoded.ConnectionException
- if the device is busy or there is an error communicating with the printer.SettingsException
- if the job settings are not valid.ZebraCardException
- if a printer error occurs or copies
is invalid.void destroy() throws ZebraCardException
ZebraCardException
- if the device is busy, a printer error, or there is an error communicating with the printer.void setGraphics(ZebraGraphicsI zebraCardGraphics)
zebraCardGraphics
object.zebraCardGraphics
- Instance of ZebraCardGraphics.
© 2016 ZIH Corp. All Rights Reserved.