public class StringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY |
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDumpBytes(byte[] data,
boolean showdecode,
int leftPadding)
Formats bytes into a hex dump, 16 bytes per line, with optional ASCII
decode.
|
static int |
getStringUtfByteLength(String str) |
static boolean |
isEmpty(String s) |
static String |
padLeft(String in,
int minLen) |
static String |
padRight(String in,
int minLen) |
static String |
propertiesToString(Properties props) |
static String |
toExceptionString(Class<?> clazz,
Properties props) |
static String |
toString(Class<?> clazz,
Properties props) |
static String |
toString(Class<?> clazz,
String qualifier,
Properties props) |
static String |
truncate(String s,
int maxLength) |
static String |
truncateStringWithEllipsis(String s,
int maxLength) |
public static final String EXCEPTION_MESSAGE_KEY
public static String toExceptionString(Class<?> clazz, Properties props)
public static String toString(Class<?> clazz, Properties props)
public static String toString(Class<?> clazz, String qualifier, Properties props)
public static String propertiesToString(Properties props)
public static int getStringUtfByteLength(String str)
public static String formatDumpBytes(byte[] data, boolean showdecode, int leftPadding)
data - Data to formatshowdecode - Whether to show ASCII decodeleftPadding - How much to pad each line (to indent output)public static boolean isEmpty(String s)
Copyright 2004-2021 Solace Corporation. All rights reserved.