Package com.zebra.sdk.settings
Class SettingsValues
Object
com.zebra.sdk.settings.SettingsValues
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValues(List<String> settingNames, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) Get the values for a list of settings from a printer.setValues(Map<String, String> settingValues, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) Set each of the settings in settingValues on a printer.
-
Constructor Details
-
SettingsValues
public SettingsValues()
-
-
Method Details
-
getValues
public Map<String,String> getValues(List<String> settingNames, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) throws ConnectionException, ZebraIllegalArgumentException Get the values for a list of settings from a printer. Use either JSON or SGD get commands to request the values from the printer, depending on the connection type and the printer language. The default timeout values from the connection will be used when communicating with the printer. If printerConnection is aMultichannelConnection, prefer the status channel.- Parameters:
settingNames- The settings to be retrieved.printerConnection- A connection to the printer.printerLanguage- The printer control language for the connection.version- The LinkOS version information.- Returns:
- A map from setting name to value.
- Throws:
ConnectionException- if it was not possible to communicate with the printer.ZebraIllegalArgumentException
-
setValues
public Map<String,String> setValues(Map<String, String> settingValues, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) throws ConnectionException, ZebraIllegalArgumentExceptionSet each of the settings in settingValues on a printer. Use either JSON or SGD set commands to set the values on the printer, depending on the connection type and the printer language. The default timeout values from the connection will be used when communicating with the printer. If printerConnection is aMultichannelConnection, prefer the status channel.- Parameters:
settingValues- Map from setting names to desired values.printerConnection- A connection to the printer.printerLanguage- The printer control language for the connection.version- The LinkOS version information.- Returns:
- A map from setting name to value.
- Throws:
ConnectionException- if it was not possible to communicate with the printer.ZebraIllegalArgumentException
-