public class LastStringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeUnicodeString(String input,
boolean escapeAscii)
Escapes the unicode in the given string.
|
static String |
removeNonPrintableWhitespace(String input)
Strips "non-printable" whitespace (carriage returns, tabs, linefeeds etc.) from the passed string.
|
static String |
truncate(String input,
int maxLength)
Truncates the passed String to the passed maximum length, if it exceeds the maximum length.
|
public static String escapeUnicodeString(String input, boolean escapeAscii)
input - The input string.escapeAscii - Whether to escape ASCII or not.public static String truncate(String input, int maxLength)
input - String to truncate.maxLength - Maximum length for String.Copyright © 2012 Last.fm. All Rights Reserved.