public class SettingsRanges
extends Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<String,String> |
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.
|
static java.util.Map<String,String> |
parseJsonForRanges(String jsonResponse)
Parse the JSON response from the JSON get range command.
|
public static java.util.Map<String,String> getRanges(java.util.List<String> settings, Connection printerConnection, PrinterLanguage printerLanguage, LinkOsInformation version) throws IllegalStateException, ConnectionException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.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.java.io.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 java.util.Map<String,String> parseJsonForRanges(String jsonResponse) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
jsonResponse
- Response from a LinkOS 3.2 or greater printer.java.io.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.
© 2017 ZIH Corp. All Rights Reserved.