public final class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static NumberFormat |
PERCENT_FORMATTER |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatDuration(long duration) |
static String |
formatMessage(String message,
int messageId)
Converts message into HTML code.
|
static String |
toValidFileName(String value)
Converts characters of passed string by replacing to dash (-) each character that might not be accepted as file
name such as / ?
|
static void |
unzipToFile(File srcZipFile,
String destDirectory) |
public static final NumberFormat PERCENT_FORMATTER
public static String formatDuration(long duration)
public static String formatMessage(String message, int messageId)
message - error messagemessageId - id of the message which should be unique per page so expand/collapse works correctlyCopyright © 2016. All rights reserved.