Package | Description |
---|---|
com.zebra.sdk.btleComm |
Provides implementation for Bluetooth® Low Energy communication protocols.
|
com.zebra.sdk.comm |
Provides implementation for communication protocols.
|
com.zebra.sdk.device |
Provides implementation for device operations
|
com.zebra.sdk.printer |
Provides implementation for Zebra branded printer functionality.
|
com.zebra.sdk.printer.discovery |
Provides implementation for finding Zebra branded printers.
|
com.zebra.sdk.settings |
Provides implementation for applying and retrieving settings from a device.
|
Modifier and Type | Method and Description |
---|---|
void |
BluetoothLeConnection.close()
Closes the Bluetooth® connection.
|
void |
BluetoothLeStatusConnection.close()
Closes the Bluetooth® connection.
|
static void |
BluetoothLeDiscoverer.findPrinters(android.content.Context context,
DiscoveryHandler discoveryHandler)
Find Bluetooth® devices that are discoverable.
Note: This method will return all Bluetooth® Low Energy Zebra printers. Note: This method should not be called from the application main thread. Note: Android 6 and higher (API 23+) requires user permission ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION in your application manifest. |
ConnectionReestablisher |
BluetoothLeConnection.getConnectionReestablisher(long thresholdTime)
Returns a ConnectionReestablisher which allows for easy recreation of a connection which may have been closed.
|
ConnectionReestablisher |
BluetoothLeStatusConnection.getConnectionReestablisher(long thresholdTime) |
void |
BluetoothLeConnection.open()
Opens a Bluetooth® Low Energy connection as specified in the constructor.
|
void |
BluetoothLeStatusConnection.open()
Opens a Bluetooth® connection as specified in the constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
LogStreamException
Signals that an error has occurred while writing to the connections log stream.
|
Modifier and Type | Method and Description |
---|---|
int |
Connection.bytesAvailable()
Returns an estimate of the number of bytes that can be read from this connection without blocking.
|
int |
ConnectionA.bytesAvailable() |
int |
MultichannelConnection.bytesAvailable() |
void |
Connection.close()
Closes this connection and releases any system resources associated with the connection.
|
void |
ConnectionA.close() |
void |
MultichannelConnection.close()
Closes both the printing and status channels of this MultichannelConnection.
|
void |
MultichannelConnection.closePrintingChannel()
Closes the printing channel of this MultichannelConnection.
|
void |
MultichannelConnection.closeStatusChannel()
Closes the status channel of this MultichannelConnection.
|
ConnectionReestablisher |
Connection.getConnectionReestablisher(long thresholdTime)
Returns a
ConnectionReestablisher which allows for easy recreation of a connection which may have
been closed. |
ConnectionReestablisher |
ConnectionA.getConnectionReestablisher(long thresholdTime) |
ConnectionReestablisher |
MultichannelConnection.getConnectionReestablisher(long thresholdTime) |
ConnectionReestablisher |
MultichannelTcpConnection.getConnectionReestablisher(long thresholdTime) |
ConnectionReestablisher |
TcpConnection.getConnectionReestablisher(long thresholdTime) |
void |
Connection.open()
Opens the connection to a device.
|
void |
ConnectionA.open() |
void |
MultichannelConnection.open()
Opens both the printing and status channel of this Multichannel connection.
|
void |
MultichannelConnection.openPrintingChannel()
Opens the printing channel of this Multichannel connection.
|
void |
MultichannelConnection.openStatusChannel()
Opens the status channel of this Multichannel connection.
|
byte[] |
Connection.read()
Reads all the available data from the connection.
|
byte[] |
ConnectionA.read() |
byte[] |
MultichannelConnection.read() |
byte[] |
ConnectionA.read(int maxBytesToRead)
Reads
maxBytesToRead of the available data from the connection. |
byte[] |
ConnectionA.read(int maxBytesToRead,
boolean exitOnFirstRead)
Reads
maxBytesToRead of the available data from the connection. |
void |
Connection.read(java.io.OutputStream destinationStream)
Reads all the available data from the connection.
|
void |
ConnectionA.read(java.io.OutputStream destinationStream) |
void |
MultichannelConnection.read(java.io.OutputStream destinationStream) |
int |
Connection.readChar()
Reads the next byte of data from the connection, similar to a Java InputStream.
|
int |
ConnectionA.readChar() |
int |
MultichannelConnection.readChar() |
void |
ConnectionReestablisher.reestablishConnection(PrinterReconnectionHandler handler)
Reestablishes a connection to a printer which may have been closed due to an event, like a reboot.
|
byte[] |
Connection.sendAndWaitForResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator)
Sends
dataToSend and returns the response data. |
byte[] |
ConnectionA.sendAndWaitForResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator) |
byte[] |
MultichannelConnection.sendAndWaitForResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator) |
void |
Connection.sendAndWaitForResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator)
Sends data from
sourceStream and writes the response data to destinationStream. |
void |
ConnectionA.sendAndWaitForResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator) |
void |
MultichannelConnection.sendAndWaitForResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
String terminator) |
byte[] |
Connection.sendAndWaitForValidResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator)
Sends
dataToSend and returns the response data. |
byte[] |
ConnectionA.sendAndWaitForValidResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator) |
byte[] |
MultichannelConnection.sendAndWaitForValidResponse(byte[] dataToSend,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator) |
void |
Connection.sendAndWaitForValidResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator)
Sends data from
sourceStream and writes the response data to destinationStream. |
void |
ConnectionA.sendAndWaitForValidResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator) |
void |
MultichannelConnection.sendAndWaitForValidResponse(java.io.OutputStream destinationStream,
java.io.InputStream sourceStream,
int initialResponseTimeout,
int responseCompletionTimeout,
ResponseValidator validator) |
void |
ConnectionA.setReadTimeout(int timeout)
Sets the underlying socket read timeout value
|
void |
Connection.waitForData(int maxTimeout)
Causes the currently executing thread to sleep until
Connection.bytesAvailable() > 0, or for a maximum of
maxTimeout milliseconds. |
void |
ConnectionA.waitForData(int maxTimeout) |
void |
MultichannelConnection.waitForData(int maxTimeout) |
void |
Connection.write(byte[] data)
Writes
data.length bytes from the specified byte array to this output stream. |
void |
ConnectionA.write(byte[] data) |
void |
MultichannelConnection.write(byte[] data) |
void |
Connection.write(byte[] data,
int offset,
int length)
Writes
length bytes from data starting at offset . |
void |
ConnectionA.write(byte[] data,
int offset,
int length) |
void |
MultichannelConnection.write(byte[] data,
int offset,
int length) |
void |
Connection.write(java.io.InputStream dataSource)
Writes all available bytes from the data source to this output stream.
|
void |
ConnectionA.write(java.io.InputStream dataSource) |
void |
MultichannelConnection.write(java.io.InputStream dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
SmartcardReader.close()
Turns the printer's smartcard reader off, if present.
|
void |
Profile.configureAlert(PrinterAlert alert) |
void |
Profile.configureAlerts(java.util.List<PrinterAlert> alerts) |
void |
FileUtilLinkOs.deleteFile(String filePath)
Deletes the file from the printer.
|
void |
Profile.deleteFile(String filePath)
Deletes the file from the profile.
|
byte[] |
SmartcardReader.doCommand(String asciiHexData)
Sends a CT_DATA command to the printer's smartcard reader, if present.
|
void |
Profile.downloadTteFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Adds a TrueType® font to a profile and stores it at the specified path as a TrueType® extension (TTE).
|
void |
Profile.downloadTteFont(String sourceFilePath,
String pathOnPrinter)
Adds a TrueType® font file to a profile and stores it at the specified path as a TrueType® extension
(TTE).
|
void |
Profile.downloadTtfFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Adds a TrueType® font file to a profile and stores it at the specified path as a TTF.
|
void |
Profile.downloadTtfFont(String sourceFilePath,
String pathOnPrinter)
Adds a TrueType® font file to a profile and stores it at the specified path as a TTF.
|
byte[] |
SmartcardReader.getATR()
Sends a CT_ATR command to the printer's smartcard reader, if present.
|
void |
FileUtilLinkOs.getObjectFromPrinter(java.io.OutputStream destinationStream,
String filePath)
Retrieves a file from the printer's file system and writes the contents of that file to destinationStream.
|
byte[] |
FileUtilLinkOs.getObjectFromPrinter(String filePath)
Retrieves a file from the printer's file system and returns the contents of that file as a byte array.
|
void |
FileUtilLinkOs.getObjectFromPrinterViaFtp(java.io.OutputStream destinationStream,
String filePath,
String ftpPassword)
Retrieves a file from the printer's file system via FTP and writes the contents of that file to
destinationStream.
|
void |
Profile.getObjectFromPrinterViaFtp(java.io.OutputStream destinationStream,
String filePath,
String ftpPassword) |
byte[] |
FileUtilLinkOs.getObjectFromPrinterViaFtp(String filePath,
String ftpPassword)
Retrieves a file from the printer's file system via FTP and returns the contents of that file as a byte array.
|
byte[] |
FileUtilLinkOs.getPrinterDownloadableObjectFromPrinter(String filePath)
Retrieves a file from the printer's file system and returns the contents of that file as a byte array including
all necessary file wrappers for redownloading to a Zebra printer.
|
java.util.List<StorageInfo> |
FileUtilLinkOs.getStorageInfo()
Retrieves storage information for all of the printer's available drives.
|
java.util.List<StorageInfo> |
Profile.getStorageInfo()
This method is not valid for a profile.
|
void |
Profile.printImage(String imageFilePath,
int x,
int y) |
void |
Profile.printImage(String imageFilePath,
int x,
int y,
int width,
int height,
boolean insideFormat) |
void |
Profile.printImage(ZebraImageI image,
int x,
int y,
int width,
int height,
boolean insideFormat) |
java.util.Map<String,String> |
Profile.processSettingsViaMap(java.util.Map<String,String> settingValuePairs)
Change or retrieve settings in the profile.
|
String[] |
MagCardReader.read(int timeoutMS)
Activates the device's magnetic card reader, if present, and waits for a card to be swiped.
|
void |
Profile.removeAlert(PrinterAlert alert)
Removes a configured alert from a profile.
|
void |
Profile.removeAllAlerts()
Removes all alerts currently in a profile.
|
String[] |
FileUtil.retrieveFileNames()
Retrieves the names of the files which are stored on the device.
|
String[] |
FileUtil.retrieveFileNames(String[] extensions)
Retrieves the names of the files which are stored on the device.
|
java.util.List<PrinterObjectProperties> |
FileUtil.retrieveObjectsProperties()
Retrieves the properties of the objects which are stored on the device.
|
void |
Profile.sendContents(String fileNameOnPrinter,
byte[] fileContents)
Adds a file to the profile named
fileNameOnPrinter with the file contents from
fileContents . |
void |
FileUtil.sendFileContents(String filePath)
Sends the contents of a file to the device.
|
void |
FileUtil.sendFileContents(String filePath,
ProgressMonitor handler)
Sends the contents of a file to the device.
|
java.util.List<String> |
ProfileToMirrorServer.sendToMirrorServer(String server,
String user,
String password)
Stores the profile to the mirror server.
|
void |
FileUtilLinkOs.storeFileOnPrinter(byte[] fileContents,
String fileNameOnPrinter)
Stores a file on the printer named
fileNameOnPrinter with the file contents from
fileContents using any required file wrappers. |
void |
Profile.storeFileOnPrinter(byte[] fileContents,
String fileNameOnPrinter)
Stores a file in the profile named
fileNameOnPrinter with the file contents from
fileContents using any required file wrappers. |
void |
FileUtilLinkOs.storeFileOnPrinter(String filePath)
Stores the file on the printer using any required file wrappers.
|
void |
Profile.storeFileOnPrinter(String filePath)
Stores the file in the profile using any required file wrappers.
|
void |
FileUtilLinkOs.storeFileOnPrinter(String filePath,
String fileNameOnPrinter)
Stores the file on the printer at the specified location and name using any required file wrappers.
|
void |
Profile.storeFileOnPrinter(String filePath,
String fileNameOnPrinter)
Stores the file in the profile at the specified location and name using any required file wrappers.
|
void |
Profile.storeImage(String deviceDriveAndFileName,
String imageFullPath,
int width,
int height) |
void |
Profile.storeImage(String deviceDriveAndFileName,
ZebraImageI image,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
ToolsUtil.calibrate()
Sends the appropriate calibrate command to the printer.
|
void |
AlertProvider.configureAlert(PrinterAlert alert)
Configures an alert to be triggered when the alert's condition occurs or becomes resolved.
|
void |
AlertProvider.configureAlerts(java.util.List<PrinterAlert> alerts)
Configures a list of alerts to be triggered when their conditions occur or become resolved.
|
void |
ProfileUtil.createBackup(String pathToOutputFile)
Save a backup of your printer's settings, alerts, and files for later restoration.
|
static void |
PrinterUtil.createBackup(String connectionString,
String profilePath)
Create a backup of your printer's settings, alerts, and files.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter)
Create a wrapper around a Zebra printer that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter,
LinkOsInformation info)
Create a wrapper around a Zebra printer that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter,
LinkOsInformation info,
PrinterLanguage language)
Create a wrapper around a Zebra printer that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter,
PrinterLanguage language)
Create a wrapper around a Zebra printer that provides access to Link-OS features.
|
void |
ProfileUtil.createProfile(java.io.OutputStream profileDestinationStream)
Create a profile of your printer's settings, alerts, and files for cloning to other printers.
|
void |
ProfileUtil.createProfile(String pathToOutputFile)
Create a profile of your printer's settings, alerts, and files for cloning to other printers.
|
static void |
PrinterUtil.createProfile(String connectionString,
String profilePath)
Create a profile of your printer's settings, alerts, and files for cloning to other printers.
|
static void |
PrinterUtil.deleteFile(String connectionString,
String filePath)
Deletes file(s) from the printer.
|
static String[] |
PrinterUtil.deleteFileReportDeleted(String connectionString,
String filePath)
Deletes file(s) from the printer and reports what files were actually removed.
|
static void |
SGD.DO(java.io.OutputStream responseData,
String setting,
String value,
Connection printerConnection)
Constructs an SGD DO command and sends it to the printer.
|
static void |
SGD.DO(java.io.OutputStream responseData,
String setting,
String value,
Connection printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData)
Constructs an SGD DO command and sends it to the printer.
|
static String |
SGD.DO(String setting,
String value,
Connection printerConnection)
Constructs an SGD DO command and sends it to the printer.
|
static String |
SGD.DO(String setting,
String value,
Connection printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData)
Constructs an SGD DO command and sends it to the printer.
|
void |
FontUtil.downloadTteFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Sends a TrueType® font to a printer and stores it at the specified path as a TrueType® extension (TTE).
|
void |
FontUtil.downloadTteFont(String sourceFilePath,
String pathOnPrinter)
Used to send a TrueType® TTE font file to a printer and store it at the specified path as a TrueType®
extension (TTE).
|
void |
FontUtil.downloadTtfFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.
|
void |
FontUtil.downloadTtfFont(String sourceFilePath,
String pathOnPrinter)
Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.
|
static String |
SGD.GET(String setting,
Connection printerConnection)
Constructs an SGD GET command and sends it to the printer.
|
static String |
SGD.GET(String setting,
Connection printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData)
Constructs an SGD GET command and sends it to the printer.
|
java.util.List<PrinterAlert> |
AlertProvider.getConfiguredAlerts()
A list of objects detailing the alert configuration of a printer.
|
PrinterStatus |
ZebraPrinter.getCurrentStatus()
Returns a new instance of
PrinterStatus that can be used to determine the status of a printer. |
static PrinterStatus |
PrinterUtil.getCurrentStatus(Connection printerConnection,
PrinterLanguage language)
Returns a new instance of
PrinterStatus that can be used to determine the status of a printer. |
static ZebraPrinter |
ZebraPrinterFactory.getInstance(Connection connection)
Factory method to create the correct
ZebraPrinter concrete class based on the printer's control language. |
static ZebraPrinter |
ZebraPrinterFactory.getInstance(PrinterLanguage language,
Connection connection)
Factory method to create the correct
ZebraPrinter concrete class based on the provided printer control
language. |
static ZebraPrinter |
ZebraPrinterFactory.getInstance(String[] cpclFwVersionPrefixes,
Connection connection)
Factory method to create the correct
ZebraPrinter concrete class based on the printer's control language. |
static ZebraPrinterLinkOs |
ZebraPrinterFactory.getLinkOsPrinter(Connection connection)
Create Link-OS Zebra printer from a connection that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.getLinkOsPrinter(Connection connection,
LinkOsInformation info)
Create Link-OS Zebra printer from a connection that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.getLinkOsPrinter(Connection connection,
LinkOsInformation info,
PrinterLanguage language)
Create Link-OS Zebra printer from a connection that provides access to Link-OS features.
|
static ZebraPrinterLinkOs |
ZebraPrinterFactory.getLinkOsPrinter(Connection connection,
PrinterLanguage language)
Create Link-OS Zebra printer from a connection that provides access to Link-OS features.
|
static void |
PrinterUtil.getObjectFromPrinter(java.io.OutputStream destinationStream,
String connectionString,
String filePathOnPrinter)
Retrieves a file from the printer's file system and writes the contents of that file to an output stream.
|
static byte[] |
PrinterUtil.getObjectFromPrinter(String connectionString,
String filePathOnPrinter)
Retrieves a file from the printer's file system and returns the contents of that file as a byte[].
|
static void |
PrinterUtil.getObjectFromPrinterViaFtp(java.io.OutputStream destination,
String connectionString,
String filePathOnPrinter,
String ftpPassword)
Retrieves a file from the printer's file system via FTP and writes the contents of that file to an output stream.
|
static byte[] |
PrinterUtil.getObjectFromPrinterViaFtp(String connectionString,
String filePathOnPrinter,
String ftpPassword)
Retrieves a file from the printer's file system via FTP and returns the contents of that file as a byte[].
|
static java.util.List<String> |
PrinterUtil.getOdometerStatus(String connectionString)
Retrieves status of the printer odometer which includes the total print length, head clean counter, label dot
length, head new, latch open counter, and both user resettable counters.
See ConnectionBuilder for the format of connectionString . |
java.util.List<TcpPortStatus> |
ZebraPrinterLinkOs.getPortStatus()
Retrieve the TCP port status of the printer and returns a list of
TcpPortStatus describing the open
ports on the printer. |
static java.util.List<TcpPortStatus> |
PrinterUtil.getPortStatus(String connectionString)
Retrieves a list of currently open tcp ports on the printer.
See ConnectionBuilder for the format of connectionString . |
static java.util.List<String> |
PrinterUtil.getPrinterStatus(String connectionString)
Retrieves status of the printer which includes any error messages currently set along with the number of labels
remaining in queue, number of labels remaining in batch, and whether or not a label is currently being processed.
|
static java.util.Map<String,Setting> |
PrinterUtil.getSettingsFromPrinter(String connectionString)
Retrieve all settings and their attributes from the specified printer.
See ConnectionBuilder for the format of connectionString . |
static String[] |
PrinterUtil.listFiles(String connectionString,
String filter)
Retrieves the names of the files which are stored on the device.
See ConnectionBuilder for the format of connectionString . |
void |
ProfileUtil.loadBackup(String pathToBackup)
Takes settings, alerts, and files from a backup, and applies them to a printer.
|
void |
ProfileUtil.loadBackup(String pathToBackup,
boolean isVerbose)
Takes settings, alerts, and files from a backup, and applies them to a printer.
|
static void |
PrinterUtil.loadBackup(String connectionString,
String backupPath)
Takes settings, alerts, and files from a backup, and applies them to a printer.
|
static void |
PrinterUtil.loadBackup(String connectionString,
String backupPath,
boolean isVerbose)
Takes settings, alerts, and files from a backup, and applies them to a printer.
|
void |
ProfileUtil.loadProfile(String pathToProfile)
Takes settings, alerts, and files from a profile, and applies them to a printer.
|
void |
ProfileUtil.loadProfile(String pathToProfile,
FileDeletionOption filesToDelete,
boolean isVerbose)
Takes settings, alerts, and files from a profile, and applies them to a printer.
|
static void |
PrinterUtil.loadProfile(String connectionString,
String profilePath,
FileDeletionOption filesToDelete)
Takes settings, alerts, and files from a profile, and applies them to a printer.
|
static void |
PrinterUtil.loadProfile(String connectionString,
String profilePath,
FileDeletionOption filesToDelete,
boolean isVerbose)
Takes settings, alerts, and files from a profile, and applies them to a printer.
|
static void |
CsvPrinter.print(java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
CsvPrinter.print(java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
static void |
CsvPrinter.print(String destinationDevice,
java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
CsvPrinter.print(String destinationDevice,
java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
static void |
PrinterUtil.printConfigLabel(String connectionString)
Causes the specified printer to print a configuration label.
See ConnectionBuilder for the format of connectionString . |
void |
ToolsUtil.printConfigurationLabel()
Sends the appropriate print configuration command to the printer.
|
void |
ToolsUtilLinkOs.printDirectoryLabel()
Send the print directory label command to the printer.
|
static void |
PrinterUtil.printDirectoryLabel(String connectionString)
Causes the specified printer to print a directory listing of all the files saved on the printer.
See ConnectionBuilder for the format of connectionString . |
void |
GraphicsUtil.printImage(String imageFilePath,
int x,
int y)
Prints an image from the connecting device file system to the connected device as a monochrome image.
|
void |
GraphicsUtil.printImage(String imageFilePath,
int x,
int y,
int width,
int height,
boolean insideFormat)
Prints an image from the connecting device file system to the connected device as a monochrome image.
|
void |
GraphicsUtil.printImage(ZebraImageI image,
int x,
int y,
int width,
int height,
boolean insideFormat)
Prints an image to the connected device as a monochrome image.
|
static void |
PrinterUtil.printNetworkConfigLabel(String connectionString)
Causes the specified printer to print a network configuration label.
See ConnectionBuilder for the format of connectionString . |
void |
ToolsUtilLinkOs.printNetworkConfigurationLabel()
Send the print network configuration command to the printer.
|
void |
FormatUtil.printStoredFormat(String formatPathOnPrinter,
java.util.Map<Integer,String> vars)
Prints a stored format on the printer, filling in the fields specified by the Map.
|
void |
FormatUtil.printStoredFormat(String formatPathOnPrinter,
java.util.Map<Integer,String> vars,
String encoding)
Prints a stored format on the printer, filling in the fields specified by the Map.
|
void |
FormatUtil.printStoredFormat(String formatPathOnPrinter,
String[] vars)
Prints a stored format on the printer, filling in the fields specified by the array.
|
void |
FormatUtil.printStoredFormat(String formatPathOnPrinter,
String[] vars,
String encoding)
Prints a stored format on the printer, filling in the fields specified by the array.
|
void |
FormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath,
java.util.Map<Integer,String> vars)
Prints a stored format on the printer, filling in the fields specified by the
Map . |
void |
FormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath,
java.util.Map<Integer,String> vars,
String encoding)
Prints a stored format on the printer, filling in the fields specified by the
Map . |
void |
FormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath,
java.util.Map<Integer,ZebraImageI> imgVars,
java.util.Map<Integer,String> vars)
Prints a stored format on the printer, filling in the fields specified by the maps.
|
void |
FormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath,
java.util.Map<Integer,ZebraImageI> imgVars,
java.util.Map<Integer,String> vars,
String encoding)
Prints a stored format on the printer, filling in the fields specified by the maps.
|
static java.util.Map<String,String> |
SettingsSetter.process(String destinationDevice,
java.util.Map<String,String> settingsToSet)
Sends the
settingsToSet to the destinationDevice and then returns the updated setting
values. |
static String |
PrinterUtil.quickStatus(String connectionString)
Retrieves the quick status of the printer.
See ConnectionBuilder for the format of connectionString . |
void |
AlertProvider.removeAlert(PrinterAlert alert)
Removes a configured alert from a printer.
|
void |
AlertProvider.removeAllAlerts()
Removes all alerts currently configured on a printer.
|
void |
ToolsUtil.reset()
Sends the appropriate reset command to the printer.
|
void |
ToolsUtilLinkOs.resetNetwork()
Sends the network reset command to the printer.
|
static void |
PrinterUtil.resetNetwork(String connectionString)
Resets the network of the specified printer.
|
static void |
PrinterUtil.resetPrinter(String connectionString)
|
void |
ToolsUtil.restoreDefaults()
Sends the appropriate restore defaults command to the printer.
|
void |
ToolsUtilLinkOs.restoreNetworkDefaults()
Send the restore network defaults command to the printer.
|
static void |
PrinterUtil.restoreNetworkDefaults(String connectionString)
Restores the printer's network settings to their factory default configuration.
|
static void |
PrinterUtil.restorePrinterDefaults(String connectionString)
Restores the printer's settings to their factory default configuration.
See ConnectionBuilder for the format of connectionString . |
void |
FormatUtil.retrieveFormatFromPrinter(java.io.OutputStream formatData,
String formatPathOnPrinter)
Retrieves a format from the printer.
|
byte[] |
FormatUtil.retrieveFormatFromPrinter(String formatPathOnPrinter)
Retrieves a format from the printer.
|
void |
ToolsUtil.sendCommand(String command)
Converts the specified command to bytes using the Java default charset and sends the bytes to the printer.
|
void |
ToolsUtil.sendCommand(String command,
String encoding)
Converts the specified command to bytes using the specified charset "encoding" and sends the bytes to the
printer.
|
static void |
PrinterUtil.sendContents(String connectionString,
java.io.InputStream data)
Send contents of
data directly to the device specified via connectionString using UTF-8
encoding.See ConnectionBuilder for the format of connectionString . |
static void |
PrinterUtil.sendContents(String connectionString,
java.io.InputStream data,
String encoding)
Send contents of
data directly to the device specified via connectionString using
encoding .See ConnectionBuilder for the format of connectionString . |
static void |
PrinterUtil.sendContents(String connectionString,
String data)
Send contents of
data directly to the device specified via connectionString using UTF-8
encoding. |
static void |
PrinterUtil.sendContents(String connectionString,
String data,
String encoding)
Send contents of
data directly to the device specified via connectionString using
encoding .See ConnectionBuilder for the format of connectionString . |
static void |
PrinterUtil.sendJSON(String connectionString,
java.io.InputStream data,
String encoding)
Send contents of
data directly to the device specified via connectionString using
encoding .See ConnectionBuilder for the format of connectionString . |
static void |
SGD.SET(String setting,
int value,
Connection printerConnection)
Constructs an SGD SET command and sends it to the printer.
|
static void |
SGD.SET(String setting,
String value,
Connection printerConnection)
Constructs an SGD SET command and sends it to the printer.
|
void |
ToolsUtilLinkOs.setClock(String dateTime)
Set the RTC time and date on the printer.
|
static void |
PrinterUtil.setClock(String connectionString,
String dateTime)
|
static void |
PrinterUtil.storeFile(String connectionString,
String filePath,
String remoteName)
Stores the file on the printer at the specified location and name using any required file wrappers.
See ConnectionBuilder for the format of connectionString . |
void |
GraphicsUtil.storeImage(String deviceDriveAndFileName,
String imageFullPath,
int width,
int height)
Stores the specified
image to the connected printer as a monochrome image. |
void |
GraphicsUtil.storeImage(String deviceDriveAndFileName,
ZebraImageI image,
int width,
int height)
Stores the specified
image to the connected printer as a monochrome image. |
void |
FirmwareUpdaterLinkOs.updateFirmware(String firmwareFilePath,
FirmwareUpdateHandler handler)
Update firmware on the printer using the default timeout of 7 minutes.
|
void |
FirmwareUpdaterLinkOs.updateFirmware(String firmwareFilePath,
long timeout,
FirmwareUpdateHandler handler)
Update firmware on the printer using the specified
timeout . |
static void |
PrinterUtil.updateFirmware(String connection,
String firmwareFilePath,
long timeout)
Update the printer firmware.
|
void |
FirmwareUpdaterLinkOs.updateFirmwareUnconditionally(String firmwareFilePath,
FirmwareUpdateHandler handler)
Update firmware on the printer, using the default timeout of 7 minutes, regardless of the firmware version
currently on the printer.
|
void |
FirmwareUpdaterLinkOs.updateFirmwareUnconditionally(String firmwareFilePath,
long timeout,
FirmwareUpdateHandler handler)
Update firmware on the printer, using the specified
timeout , regardless of the firmware version
currently on the printer. |
Constructor and Description |
---|
PrinterStatus(Connection printerConnection)
Constructs a PrinterStatus instance that can be used to determine the status of a printer.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<String,String> |
DiscoveryUtil.getDiscoveryDataMap(Connection connection)
Reads the discovery packet from the provided connection and returns a discovery data map
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<String,String> |
SettingsRanges.getRanges(java.util.List<String> settings,
Connection printerConnection,
PrinterLanguage printerLanguage,
LinkOsInformation version)
Use the LinkOS 3.2 JSON syntax to get the ranges for a list of SDGs, without the need to use an allconfig.
|
java.util.Map<String,String> |
SettingsProvider.getSettingsValues(java.util.List<String> listOfSettings)
Retrieves the device's setting values for a list of setting IDs.
|
String |
SettingsProvider.getSettingValue(String settingId)
Retrieves the device's setting value for a setting id.
|
java.util.Map<String,String> |
SettingsValues.getValues(java.util.List<String> settingNames,
Connection printerConnection,
PrinterLanguage printerLanguage,
LinkOsInformation version)
Get the values for a list of settings from a printer.
|
java.util.Map<String,String> |
SettingsProvider.processSettingsViaMap(java.util.Map<String,String> settingValuePairs)
Change or retrieve printer settings.
|
java.util.Map<String,String> |
SettingsValues.setValues(java.util.Map<String,String> settingValues,
Connection printerConnection,
PrinterLanguage printerLanguage,
LinkOsInformation version)
Set each of the settings in settingValues on a printer.
|
© 2017 ZIH Corp. All Rights Reserved.