public class SchemeUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY_VALUE_SEPARATOR |
static String |
DEFAULT_PARAM_SEPARATOR |
static String |
LINE_FEED |
| Constructor and Description |
|---|
SchemeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getParameters(String qrCode)
Parses the given string into a key/value map.
|
static Map<String,String> |
getParameters(String qrCode,
String paramSeparator)
Parses the given string into a key/value map.
|
static Map<String,String> |
getParameters(String qrCode,
String paramSeparator,
String keyValueSeparator)
Parses the given string into a key/value map
|
public static final String LINE_FEED
public static final String DEFAULT_PARAM_SEPARATOR
public static final String DEFAULT_KEY_VALUE_SEPARATOR
public static Map<String,String> getParameters(String qrCode, String paramSeparator)
qrCode - the qrCode to split into key/value pairs.paramSeparator - the string that splits the parameterspublic static Map<String,String> getParameters(String qrCode)
qrCode - the qrCode to split into key/value pairs.public static Map<String,String> getParameters(String qrCode, String paramSeparator, String keyValueSeparator)
qrCode - the qrCode to split into key/value pairs.paramSeparator - the string that splits the parameterskeyValueSeparator - the string that splits the key/value pairsCopyright © 2018. All rights reserved.