public class SettingsRanges extends Object
| Constructor and Description |
|---|
SettingsRanges() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
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.
|
static Map<String,String> |
parseJsonForRanges(String jsonResponse)
Parse the JSON response from the JSON get range command.
|
public static Map<String,String> getRanges(List<String> settings, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) throws IllegalStateException, ConnectionException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
settings - A list of SGD names.printerConnection - A connection to a LinkOS printer.printerLanguage - the current printer control languageversion - LinkOS versionIllegalStateException - If the printer is not LinkOS 3.2 or higher.ConnectionException - ConnectionException If the connection fails.IOException - If there is an error parsing the JSON response from the printer.com.fasterxml.jackson.databind.JsonMappingException - If there is an error parsing the JSON response from the printer.com.fasterxml.jackson.core.JsonParseException - If there is an error parsing the JSON response from the printer.public static Map<String,String> parseJsonForRanges(String jsonResponse) throws IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
jsonResponse - Response from a LinkOS 3.2 or greater printer.IOException - If there is an error parsing the JSON response from the printer.com.fasterxml.jackson.databind.JsonMappingException - If there is an error parsing the JSON response from the printer.com.fasterxml.jackson.core.JsonParseException - If there is an error parsing the JSON response from the printer.
© 2016 ZIH Corp. All Rights Reserved.