public class Strings extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_KEYVALUE_SEPARATOR |
static String |
DEFAULT_SEPARATOR |
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
appendKeyValue(StringBuilder sb,
String key,
Object value)
Append to a StringBuilder a key/value.
|
static StringBuilder |
appendKeyValue(StringBuilder sb,
String key,
Object value,
String separator,
String keyValueSeparator)
Append to a StringBuilder a key/value.
|
static String |
domainNamePointerToHostName(String dnPtr)
Given a PTR string generated via reverse DNS lookup, return everything
except the trailing period.
|
public static final String DEFAULT_SEPARATOR
public static final String DEFAULT_KEYVALUE_SEPARATOR
public static StringBuilder appendKeyValue(StringBuilder sb, String key, Object value)
sb
- StringBuilder to usekey
- Key to append.value
- Value to append.sb
populated with key/value.public static StringBuilder appendKeyValue(StringBuilder sb, String key, Object value, String separator, String keyValueSeparator)
sb
- StringBuilder to usekey
- Key to append.value
- Value to append.separator
- Value to use between key and value.keyValueSeparator
- Value to use between key/value sets.sb
populated with key/value.public static String domainNamePointerToHostName(String dnPtr)
dnPtr
- a domain name pointer (PTR) string.Copyright © 2016. All rights reserved.