Uses of Class
com.zebra.sdk.comm.ConnectionException
Packages that use ConnectionException
Package
Description
Provides implementation for communication protocols.
Provides implementation for device operations
Provides implementation for Zebra branded printer functionality.
Provides implementation for finding Zebra branded printers.
Provides implementation for communicating to Link-OS printers over Web Sockets.
Provides implementation for finding Link-OS printers connected to a remote Zebra Web Service servlet via Web Sockets.
Provides implementation for applying and retrieving settings from a device.
-
Uses of ConnectionException in com.zebra.sdk.comm
Subclasses of ConnectionException in com.zebra.sdk.commModifier and TypeClassDescriptionclassSignals that an error has occurred while writing to the connections log stream.Methods in com.zebra.sdk.comm that throw ConnectionExceptionModifier and TypeMethodDescriptionstatic ConnectionCreates a Connection type based on the contents ofdescriptionString.intConnection.bytesAvailable()Returns an estimate of the number of bytes that can be read from this connection without blocking.intConnectionA.bytesAvailable()intDriverPrinterConnection.bytesAvailable()Returns the number of bytes available on the connection.intMultichannelConnection.bytesAvailable()intUsbConnection.bytesAvailable()Returns number of bytes currently read from printer.voidConnection.close()Closes this connection and releases any system resources associated with the connection.voidConnectionA.close()voidDriverPrinterConnection.close()voidMultichannelConnection.close()Closes both the printing and status channels of this MultichannelConnection.voidUsbConnection.close()voidMultichannelConnection.closePrintingChannel()Closes the printing channel of this MultichannelConnection.voidMultichannelConnection.closeStatusChannel()Closes the status channel of this MultichannelConnection.static TlsConfigTlsConfig.fromCertificateFile(String filePath) Loads a CA certificate from a CRT, CER, or PEM file and creates a TLS configuration that validates against it.Connection.getConnectionReestablisher(long thresholdTime) Returns aConnectionReestablisherwhich allows for easy recreation of a connection which may have been closed.ConnectionA.getConnectionReestablisher(long thresholdTime) DriverPrinterConnection.getConnectionReestablisher(long thresholdTime) MultichannelConnection.getConnectionReestablisher(long thresholdTime) MultichannelTcpConnection.getConnectionReestablisher(long thresholdTime) MultichannelTlsConnection.getConnectionReestablisher(long thresholdTime) TcpConnection.getConnectionReestablisher(long thresholdTime) TlsConnection.getConnectionReestablisher(long thresholdTime) UsbConnection.getConnectionReestablisher(long thresholdTime) voidConnection.open()Opens the connection to a device.voidConnectionA.open()voidDriverPrinterConnection.open()voidMultichannelConnection.open()Opens both the printing and status channel of this Multichannel connection.voidUsbConnection.open()voidMultichannelConnection.openPrintingChannel()Opens the printing channel of this Multichannel connection.voidMultichannelConnection.openStatusChannel()Opens the status channel of this Multichannel connection.byte[]Connection.read()Reads all the available data from the connection.voidConnection.read(OutputStream destinationStream) Reads all the available data from the connection.byte[]ConnectionA.read()byte[]ConnectionA.read(int maxBytesToRead) ReadsmaxBytesToReadof the available data from the connection.byte[]ConnectionA.read(int maxBytesToRead, boolean exitOnFirstRead) ReadsmaxBytesToReadof the available data from the connection.voidConnectionA.read(OutputStream destinationStream) byte[]DriverPrinterConnection.read()byte[]MultichannelConnection.read()voidMultichannelConnection.read(OutputStream destinationStream) byte[]UsbConnection.read(int maxBytesToRead) Reads up to maxBytesToRead into byte array
Performing reads using DriverPrinterConnection and UsbConnection concurrently could cause indeterminate readsintConnection.readChar()Reads the next byte of data from the connection, similar to a Java InputStream.intConnectionA.readChar()intDriverPrinterConnection.readChar()intMultichannelConnection.readChar()intUsbConnection.readChar()voidConnectionReestablisher.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) SendsdataToSendand returns the response data.voidConnection.sendAndWaitForResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, String terminator) Sends data fromsourceStreamand writes the response data to destinationStream.byte[]ConnectionA.sendAndWaitForResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, String terminator) voidConnectionA.sendAndWaitForResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, String terminator) byte[]MultichannelConnection.sendAndWaitForResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, String terminator) voidMultichannelConnection.sendAndWaitForResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, String terminator) byte[]TlsConnection.sendAndWaitForResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, String terminator) voidTlsConnection.sendAndWaitForResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, String terminator) byte[]Connection.sendAndWaitForValidResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) SendsdataToSendand returns the response data.voidConnection.sendAndWaitForValidResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) Sends data fromsourceStreamand writes the response data to destinationStream.byte[]ConnectionA.sendAndWaitForValidResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) voidConnectionA.sendAndWaitForValidResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) byte[]MultichannelConnection.sendAndWaitForValidResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) voidMultichannelConnection.sendAndWaitForValidResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) byte[]TlsConnection.sendAndWaitForValidResponse(byte[] dataToSend, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) voidTlsConnection.sendAndWaitForValidResponse(OutputStream destinationStream, InputStream sourceStream, int initialResponseTimeout, int responseCompletionTimeout, ResponseValidator validator) voidConnectionA.setReadTimeout(int timeout) Sets the underlying socket read timeout valuestatic TlsConfigTlsConfig.trustJavaKeyStore()Creates a configuration that uses the default JVM keystore (cacerts) for certificate validation.voidConnection.waitForData(int maxTimeout) Causes the currently executing thread to sleep untilConnection.bytesAvailable()> 0, or for a maximum ofmaxTimeoutmilliseconds.voidConnectionA.waitForData(int maxTimeout) voidMultichannelConnection.waitForData(int maxTimeout) voidConnection.write(byte[] data) Writesdata.lengthbytes from the specified byte array to this output stream.voidConnection.write(byte[] data, int offset, int length) Writeslengthbytes fromdatastarting atoffset.voidConnection.write(InputStream dataSource) Writes all available bytes from the data source to this output stream.voidConnectionA.write(byte[] data) voidConnectionA.write(byte[] data, int offset, int length) voidConnectionA.write(InputStream dataSource) voidDriverPrinterConnection.write(byte[] data, int offset, int length) voidMultichannelConnection.write(byte[] data) voidMultichannelConnection.write(byte[] data, int offset, int length) voidMultichannelConnection.write(InputStream dataSource) voidUsbConnection.write(byte[] data) voidUsbConnection.write(byte[] data, int offset, int length) Constructors in com.zebra.sdk.comm that throw ConnectionExceptionModifierConstructorDescriptionDriverPrinterConnection(String printerName) Initializes a new instance of theDriverPrinterConnectionclass.DriverPrinterConnection(String printerName, int maxTimeoutForRead, int timeToWaitForMoreData) Initializes a new instance of theDriverPrinterConnectionclass.UsbConnection(String symbolicName) Initializes a new instance of theUsbConnectionclass.UsbConnection(String symbolicName, int maxTimeoutForRead, int timeToWaitForMoreData) Initializes a new instance of theUsbConnectionclass. -
Uses of ConnectionException in com.zebra.sdk.device
Methods in com.zebra.sdk.device that throw ConnectionExceptionModifier and TypeMethodDescriptionvoidSmartcardReader.close()Turns the printer's smartcard reader off, if present.voidProfile.configureAlert(PrinterAlert alert) voidProfile.configureAlerts(List<PrinterAlert> alerts) voidFileUtilLinkOs.deleteFile(String filePath) Deletes a file at the specified file path.voidProfile.deleteFile(String filePath) Deletes the file from the profile.voidFileUtilLinkOs.deleteFileOnPrinterProtected(String filePath, String authPassword) Deletes the file from the printer on protected mode.voidProfile.deleteFileOnPrinterProtected(String filePath, String authPassword) byte[]Sends a CT_DATA command to the printer's smartcard reader, if present.voidProfile.downloadTteFont(InputStream sourceInputStream, String pathOnPrinter) Adds a TrueType® font to a profile and stores it at the specified path as a TrueType® extension (TTE).voidProfile.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).voidProfile.downloadTtfFont(InputStream sourceInputStream, String pathOnPrinter) Adds a TrueType® font file to a profile and stores it at the specified path as a TTF.voidProfile.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.voidFileUtilLinkOs.getObjectFromPrinter(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.voidFileUtilLinkOs.getObjectFromPrinterViaFtp(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.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.voidProfile.getObjectFromPrinterViaFtp(OutputStream destinationStream, String filePath, String ftpPassword) 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.FileUtilLinkOs.getStorageInfo()Retrieves storage information for all of the printer's available drives.Profile.getStorageInfo()This method is not valid for a profile.voidProfile.printImage(ZebraImageI image, int x, int y, int width, int height, boolean insideFormat) voidProfile.printImage(String imageFilePath, int x, int y) voidProfile.printImage(String imageFilePath, int x, int y, int width, int height, boolean insideFormat) Profile.processSettingsViaMap(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.voidProfile.removeAlert(PrinterAlert alert) Removes a configured alert from a profile.voidProfile.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.FileUtil.retrieveObjectsProperties()Retrieves the properties of the objects which are stored on the device.voidProfile.sendContents(String fileNameOnPrinter, byte[] fileContents) Adds a file to the profile namedfileNameOnPrinterwith the file contents fromfileContents.voidFileUtil.sendFileContents(String filePath) Sends the contents of a file to the device.voidFileUtil.sendFileContents(String filePath, ProgressMonitor handler) Sends the contents of a file to the device.ProfileToMirrorServer.sendToMirrorServer(String server, String user, String password) Stores the profile to the mirror server.voidFileUtilLinkOs.storeFileOnPrinter(byte[] fileContents, String fileNameOnPrinter) Stores a file on the printer namedfileNameOnPrinterwith the file contents fromfileContentsusing any required file wrappers.voidFileUtilLinkOs.storeFileOnPrinter(String filePath) Stores the file on the printer using any required file wrappers.voidFileUtilLinkOs.storeFileOnPrinter(String filePath, String fileNameOnPrinter) Stores the file on the printer at the specified location using specified name using any required file wrappers.voidProfile.storeFileOnPrinter(byte[] fileContents, String fileNameOnPrinter) Stores a file in the profile namedfileNameOnPrinterwith the file contents fromfileContentsusing any required file wrappers.voidProfile.storeFileOnPrinter(String filePath) Stores the file in the profile using any required file wrappers.voidProfile.storeFileOnPrinter(String filePath, String fileNameOnPrinter) Stores the file in the profile at the specified location and name using any required file wrappers.voidFileUtilLinkOs.storeFileOnPrinterProtected(String filePath, String authPassword) Stores the file on the printer in Protected Mode, available at the specified location and provided authentication password using the required file wrapper(s).voidFileUtilLinkOs.storeFileOnPrinterProtected(String filePath, String fileNameOnPrinter, String authPassword) Stores the file on the printer in Protected Mode, available at the specified location, with the specified name and provided authentication password using the required file wrapper(s).voidProfile.storeFileOnPrinterProtected(String filePath, String authPassword) voidProfile.storeFileOnPrinterProtected(String filePath, String fileNameOnPrinter, String authPassword) voidProfile.storeImage(String deviceDriveAndFileName, ZebraImageI image, int width, int height) voidProfile.storeImage(String deviceDriveAndFileName, String imageFullPath, int width, int height) -
Uses of ConnectionException in com.zebra.sdk.printer
Methods in com.zebra.sdk.printer that throw ConnectionExceptionModifier and TypeMethodDescriptionvoidToolsUtil.calibrate()Sends the appropriate calibrate command to the printer.voidAlertProvider.configureAlert(PrinterAlert alert) Configures an alert to be triggered when the alert's condition occurs or becomes resolved.voidAlertProvider.configureAlerts(List<PrinterAlert> alerts) Configures a list of alerts to be triggered when their conditions occur or become resolved.static voidPrinterUtil.createBackup(String connectionString, String profilePath) Create a backup of your printer's settings, alerts, and files.voidProfileUtil.createBackup(String pathToOutputFile) Save a backup of your printer's settings, alerts, and files for later restoration.static ZebraPrinterLinkOsZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter) Create a wrapper around a Zebra printer that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter, LinkOsInformation info) Create a wrapper around a Zebra printer that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter, LinkOsInformation info, PrinterLanguage language) Create a wrapper around a Zebra printer that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.createLinkOsPrinter(ZebraPrinter genericPrinter, PrinterLanguage language) Create a wrapper around a Zebra printer that provides access to Link-OS features.static voidPrinterUtil.createProfile(String connectionString, String profilePath) Create a profile of your printer's settings, alerts, and files for cloning to other printers.voidProfileUtil.createProfile(OutputStream profileDestinationStream) Create a profile of your printer's settings, alerts, and files for cloning to other printers.voidProfileUtil.createProfile(String pathToOutputFile) Create a profile of your printer's settings, alerts, and files for cloning to other printers.static voidPrinterUtil.deleteFile(String connectionString, String filePath) Deletes file(s) from the printer.static voidPrinterUtil.deleteFile(String connectionString, String filePath, String authPassword) For printers in Protected Mode: 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 String[]PrinterUtil.deleteFileReportDeleted(String connectionString, String filePath, String authPassword) For printers in Protected Mode: Deletes file(s) from the printer and reports what files were actually removed.static voidSGD.DO(OutputStream responseData, String setting, String value, Connection printerConnection) Constructs an SGD DO command and sends it to the printer.static voidSGD.DO(OutputStream responseData, String setting, String value, Connection printerConnection, int maxTimeoutForRead, int timeToWaitForMoreData) Constructs an SGD DO command and sends it to the printer.static StringSGD.DO(String setting, String value, Connection printerConnection) Constructs an SGD DO command and sends it to the printer.static StringSGD.DO(String setting, String value, Connection printerConnection, int maxTimeoutForRead, int timeToWaitForMoreData) Constructs an SGD DO command and sends it to the printer.voidFontUtil.downloadTteFont(InputStream sourceInputStream, String pathOnPrinter) Sends a TrueType® font to a printer and stores it at the specified path as a TrueType® extension (TTE).voidFontUtil.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).voidFontUtil.downloadTtfFont(InputStream sourceInputStream, String pathOnPrinter) Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.voidFontUtil.downloadTtfFont(String sourceFilePath, String pathOnPrinter) Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.static StringSGD.GET(String setting, Connection printerConnection) Constructs an SGD GET command and sends it to the printer.static StringSGD.GET(String setting, Connection printerConnection, int maxTimeoutForRead, int timeToWaitForMoreData) Constructs an SGD GET command and sends it to the printer.AlertProvider.getConfiguredAlerts()A list of objects detailing the alert configuration of a printer.static PrinterStatusPrinterUtil.getCurrentStatus(Connection printerConnection, PrinterLanguage language) Returns a new instance ofPrinterStatusthat can be used to determine the status of a printer.ZebraPrinter.getCurrentStatus()Returns a new instance ofPrinterStatusthat can be used to determine the status of a printer.static ZebraPrinterZebraPrinterFactory.getInstance(Connection connection) Factory method to create the correctZebraPrinterconcrete class based on the printer's control language.static ZebraPrinterZebraPrinterFactory.getInstance(PrinterLanguage language, Connection connection) Factory method to create the correctZebraPrinterconcrete class based on the provided printer control language.static ZebraPrinterZebraPrinterFactory.getInstance(String[] cpclFwVersionPrefixes, Connection connection) Factory method to create the correctZebraPrinterconcrete class based on the printer's control language.static ZebraPrinterLinkOsZebraPrinterFactory.getLinkOsPrinter(Connection connection) Create Link-OS Zebra printer from a connection that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.getLinkOsPrinter(Connection connection, LinkOsInformation info) Create Link-OS Zebra printer from a connection that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.getLinkOsPrinter(Connection connection, LinkOsInformation info, PrinterLanguage language) Create Link-OS Zebra printer from a connection that provides access to Link-OS features.static ZebraPrinterLinkOsZebraPrinterFactory.getLinkOsPrinter(Connection connection, PrinterLanguage language) Create Link-OS Zebra printer from a connection that provides access to Link-OS features.static voidPrinterUtil.getObjectFromPrinter(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 voidPrinterUtil.getObjectFromPrinterViaFtp(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[].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 ofconnectionString.static List<TcpPortStatus> PrinterUtil.getPortStatus(String connectionString) Retrieves a list of currently open tcp ports on the printer.
See ConnectionBuilder for the format ofconnectionString.ZebraPrinterLinkOs.getPortStatus()Retrieve the TCP port status of the printer and returns a list ofTcpPortStatusdescribing the open ports on the printer.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.PrinterUtil.getSettingsFromPrinter(String connectionString) Retrieve all settings and their attributes from the specified printer.
See ConnectionBuilder for the format ofconnectionString.static String[]Retrieves the names of the files which are stored on the device.
See ConnectionBuilder for the format ofconnectionString.static voidPrinterUtil.loadBackup(String connectionString, String backupPath) Takes settings, alerts, and files from a backup, and applies them to a printer.static voidPrinterUtil.loadBackup(String connectionString, String backupPath, boolean isVerbose) Takes settings, alerts, and files from a backup, and applies them to a printer.voidProfileUtil.loadBackup(String pathToBackup) Takes settings, alerts, and files from a backup, and applies them to a printer.voidProfileUtil.loadBackup(String pathToBackup, boolean isVerbose) Takes settings, alerts, and files from a backup, and applies them to a printer.static voidPrinterUtil.loadProfile(String connectionString, String profilePath, FileDeletionOption filesToDelete) Takes settings, alerts, and files from a profile, and applies them to a printer.static voidPrinterUtil.loadProfile(String connectionString, String profilePath, FileDeletionOption filesToDelete, boolean isVerbose) Takes settings, alerts, and files from a profile, and applies them to a printer.voidProfileUtil.loadProfile(String pathToProfile) Takes settings, alerts, and files from a profile, and applies them to a printer.voidProfileUtil.loadProfile(String pathToProfile, FileDeletionOption filesToDelete, boolean isVerbose) Takes settings, alerts, and files from a profile, and applies them to a printer.static voidCsvPrinter.print(InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream) Print template formats using comma separated values as input data.static voidCsvPrinter.print(InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream, boolean verbose) Print template formats using comma separated values as input data.static voidCsvPrinter.print(String destinationDevice, InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream) Print template formats using comma separated values as input data.static voidCsvPrinter.print(String destinationDevice, InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream, boolean verbose) Print template formats using comma separated values as input data.static voidPrinterUtil.printConfigLabel(String connectionString) Prints the configuration label on a printer using the specified connection string.voidToolsUtil.printConfigurationLabel()Sends the appropriate print configuration command to the printer.static voidPrinterUtil.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 ofconnectionString.voidToolsUtilLinkOs.printDirectoryLabel()Send the print directory label command to the printer.voidGraphicsUtil.printImage(ZebraImageI image, int x, int y, int width, int height, boolean insideFormat) Prints an image to the connected device as a monochrome image.voidGraphicsUtil.printImage(String imageFilePath, int x, int y) Prints an image from the connecting device file system to the connected device as a monochrome image.voidGraphicsUtil.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.static voidPrinterUtil.printNetworkConfigLabel(String connectionString) Causes the specified printer to print a network configuration label.
See ConnectionBuilder for the format ofconnectionString.voidToolsUtilLinkOs.printNetworkConfigurationLabel()Send the print network configuration command to the printer.voidFormatUtil.printStoredFormat(String formatPathOnPrinter, String[] vars) Prints a stored format on the printer, filling in the fields specified by the array.voidFormatUtil.printStoredFormat(String formatPathOnPrinter, String[] vars, String encoding) Prints a stored format on the printer, filling in the fields specified by the array.voidFormatUtil.printStoredFormat(String formatPathOnPrinter, Map<Integer, String> vars) Prints a stored format on the printer, filling in the fields specified by the Map.voidPrints a stored format on the printer, filling in the fields specified by the Map.voidFormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath, Map<Integer, ZebraImageI> imgVars, Map<Integer, String> vars) Prints a stored format on the printer, filling in the fields specified by the maps.voidFormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath, Map<Integer, ZebraImageI> imgVars, Map<Integer, String> vars, String encoding) Prints a stored format on the printer, filling in the fields specified by the maps.voidFormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath, Map<Integer, String> vars) Prints a stored format on the printer, filling in the fields specified by theMap.voidFormatUtilLinkOs.printStoredFormatWithVarGraphics(String storedFormatPath, Map<Integer, String> vars, String encoding) Prints a stored format on the printer, filling in the fields specified by theMap.Sends thesettingsToSetto thedestinationDeviceand then returns the updated setting values.static StringPrinterUtil.quickStatus(String connectionString) Retrieves the quick status of the printer.
See ConnectionBuilder for the format ofconnectionString.voidAlertProvider.removeAlert(PrinterAlert alert) Removes a configured alert from a printer.voidAlertProvider.removeAllAlerts()Removes all alerts currently configured on a printer.voidToolsUtil.reset()Sends the appropriate reset command to the printer.static voidPrinterUtil.resetNetwork(String connectionString) Resets the network of the specified printer.static voidPrinterUtil.resetNetwork(String connectionString, String authPassword) For printers in Protected Mode: Resets the network configuration of a Zebra printer connected via the specified connection string.voidToolsUtilLinkOs.resetNetwork()Sends the network reset command to the printer.voidToolsUtilLinkOs.resetNetworkProtected(String authPassword) Sends the network reset command to the printer on protected mode.static voidPrinterUtil.resetPrinter(String connectionString) static voidPrinterUtil.resetPrinter(String connectionString, String authPassword) For printers in Protected Mode: Resets the specified printer.voidToolsUtilLinkOs.resetProtected(String authPassword) Sends the appropriate reset command to the printer on protected mode.voidASMUtilLinkOs.restoreAsmDefaults(String authPassword, String sgdBranch) Sends the appropriate restore command for specified sgd branch to the printer in protected mode.static voidPrinterUtil.restoreAsmDefaults(String connectionString, String authPassword, String sgdBranch) For printers in Protected Mode: Restores the specified SGD branch(ip,wlan or power etc) configuration settings of a Zebra Link-OS printer in protected mode to their default values.voidToolsUtil.restoreDefaults()Sends the appropriate restore defaults command to the printer.static voidPrinterUtil.restoreNetworkDefaults(String connectionString) Restores the network settings of a Zebra Link-OS printer to their default values.voidToolsUtilLinkOs.restoreNetworkDefaults()Send the restore network defaults command to the printer.static voidPrinterUtil.restorePrinterDefaults(String connectionString) Restores a Zebra printer to its default settings.voidFormatUtil.retrieveFormatFromPrinter(OutputStream formatData, String formatPathOnPrinter) Retrieves a format from the printer.byte[]FormatUtil.retrieveFormatFromPrinter(String formatPathOnPrinter) Retrieves a format from the printer.voidToolsUtil.sendCommand(String command) Converts the specified command to bytes using the Java default charset and sends the bytes to the printer.voidToolsUtil.sendCommand(String command, String encoding) Converts the specified command to bytes using the specified charset "encoding" and sends the bytes to the printer.static voidPrinterUtil.sendContents(String connectionString, InputStream data) Send contents ofdatadirectly to the device specified viaconnectionStringusing UTF-8 encoding.
See ConnectionBuilder for the format ofconnectionString.static voidPrinterUtil.sendContents(String connectionString, InputStream data, String encoding) Send contents ofdatadirectly to the device specified viaconnectionStringusingencoding.
See ConnectionBuilder for the format ofconnectionString.static voidPrinterUtil.sendContents(String connectionString, String data) Send contents ofdatadirectly to the device specified viaconnectionStringusing UTF-8 encoding.static voidPrinterUtil.sendContents(String connectionString, String data, String encoding) Send contents ofdatadirectly to the device specified viaconnectionStringusingencoding.
See ConnectionBuilder for the format ofconnectionString.static voidPrinterUtil.sendJSON(String connectionString, InputStream data, String encoding) Send contents ofdatadirectly to the device specified viaconnectionStringusingencoding.
See ConnectionBuilder for the format ofconnectionString.static voidSGD.SET(String setting, int value, Connection printerConnection) Constructs an SGD SET command and sends it to the printer.static voidSGD.SET(String setting, String value, Connection printerConnection) Constructs an SGD SET command and sends it to the printer.static voidvoidSet the RTC time and date on the printer.static voidStores the file on the printer at the specified location and with specified name using any required file wrappers.
See ConnectionBuilder for the format ofconnectionString.static voidPrinterUtil.storeFile(String connectionString, String filePath, String remoteName, String authPassword) For printers in Protected Mode: Stores the file on the printer at the specified location and name using any required file wrappers.
If the printer is in protected mode, authentication is required via the provided password for file types (NRD, NRE and PAC).voidGraphicsUtil.storeImage(String deviceDriveAndFileName, ZebraImageI image, int width, int height) Stores the specifiedimageto the connected printer as a monochrome image.voidGraphicsUtil.storeImage(String deviceDriveAndFileName, String imageFullPath, int width, int height) Stores the specifiedimageto the connected printer as a monochrome image.voidFirmwareUpdaterLinkOs.updateFirmware(String firmwareFilePath, long timeout, FirmwareUpdateHandler handler) Update firmware on the printer using the specifiedtimeout.voidFirmwareUpdaterLinkOs.updateFirmware(String firmwareFilePath, FirmwareUpdateHandler handler) Update firmware on the printer using the default timeout of 10 minutes.static voidPrinterUtil.updateFirmware(String connection, String firmwareFilePath, long timeout) Update the printer firmware.voidFirmwareUpdaterLinkOs.updateFirmwareUnconditionally(String firmwareFilePath, long timeout, FirmwareUpdateHandler handler) Update firmware on the printer, using the specifiedtimeout, regardless of the firmware version currently on the printer.voidFirmwareUpdaterLinkOs.updateFirmwareUnconditionally(String firmwareFilePath, FirmwareUpdateHandler handler) Update firmware on the printer, using the default timeout of 10 minutes, regardless of the firmware version currently on the printer.Constructors in com.zebra.sdk.printer that throw ConnectionExceptionModifierConstructorDescriptionPrinterStatus(Connection printerConnection) Constructs a PrinterStatus instance that can be used to determine the status of a printer. -
Uses of ConnectionException in com.zebra.sdk.printer.discovery
Methods in com.zebra.sdk.printer.discovery that throw ConnectionExceptionModifier and TypeMethodDescriptionDiscoveryUtil.getDiscoveryDataMap(Connection connection) Reads the discovery packet from the provided connection and returns a discovery data mapstatic DiscoveredPrinterDriver[]UsbDiscoverer.getZebraDriverPrinters()Enumerate locally installed Zebra Designer Drivers.static DiscoveredUsbPrinter[]UsbDiscoverer.getZebraUsbPrinters()Enumerate all currently connected Zebra USB printers.static DiscoveredUsbPrinter[]UsbDiscoverer.getZebraUsbPrinters(DiscoveredPrinterFilter discoveredPrinterFilter) Enumerate currently connected Zebra USB printers that meet the specified DiscoveredPrinterFilter criteria.Constructors in com.zebra.sdk.printer.discovery that throw ConnectionExceptionModifierConstructorDescriptionDiscoveredUsbPrinter(String symbolicName) Returns an instance of aDiscoveredUsbPrinterbuilt using thesymbolicNamereturned byUsbDiscoverer.getZebraUsbPrinters() -
Uses of ConnectionException in com.zebra.sdk.remote.comm
Methods in com.zebra.sdk.remote.comm that throw ConnectionExceptionModifier and TypeMethodDescriptionintRemoteConnection.bytesAvailable()intRemoteStatusConnection.bytesAvailable()voidRemoteConnection.close()Close has no effect on a remote connection.voidRemoteStatusConnection.close()MultichannelRemoteConnection.getConnectionReestablisher(long thresholdTime) RemoteConnection.getConnectionReestablisher(long thresholdTime) RemoteStatusConnection.getConnectionReestablisher(long thresholdTime) voidRemoteConnection.open()voidRemoteStatusConnection.open()byte[]RemoteConnection.read()byte[]RemoteConnection.read(int maxBytesToRead) byte[]RemoteStatusConnection.read()byte[]RemoteStatusConnection.read(int maxBytesToRead) intRemoteConnection.readChar()intRemoteStatusConnection.readChar()voidRemoteConnection.registerForAlerts(HashSet<AlertCondition> alertsConditionsToMonitor, AlertMonitorI monitorCallback) Register for alerts on the RemoteConnection which are being received by the Zebra Servlet Instance.voidRemoteConnection.unregisterForAlerts(HashSet<AlertCondition> alertsConditionsToMonitor, AlertMonitorI monitorCallback) Un-Register an AlertMonitor from a RemoteConnection.voidRemoteConnection.write(byte[] data) voidRemoteConnection.write(byte[] data, int offset, int length) voidRemoteStatusConnection.write(byte[] data) voidRemoteStatusConnection.write(byte[] data, int offset, int length) -
Uses of ConnectionException in com.zebra.sdk.remote.discovery
Methods in com.zebra.sdk.remote.discovery that throw ConnectionExceptionModifier and TypeMethodDescriptionstatic List<DiscoveredPrinter> RemoteDiscoverer.getConnectedPrinters()Returns a list of remotely connected Zebra printers.static List<DiscoveredPrinter> RemoteDiscoverer.getConnectedPrinters(int rmiServerPort) Returns a list of remotely connected Zebra printers.static voidRemoteDiscoverer.registerForConnections(ConnectionHandlerI connectionHandler, int rmiServerPort) Register for connection events from the Zebra Weblink servlet. -
Uses of ConnectionException in com.zebra.sdk.settings
Methods in com.zebra.sdk.settings that throw ConnectionExceptionModifier and TypeMethodDescriptionSettingsRanges.getRanges(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.SettingsProvider.getSettingsValues(List<String> listOfSettings) Retrieves the device's setting values for a list of setting IDs.SettingsProvider.getSettingValue(String settingId) Retrieves the device's setting value for a setting id.SettingsValues.getValues(List<String> settingNames, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) Get the values for a list of settings from a printer.SettingsProvider.processSettingsViaMap(Map<String, String> settingValuePairs) Change or retrieve printer settings.SettingsValues.setValues(Map<String, String> settingValues, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) Set each of the settings in settingValues on a printer.