STRING [StringTool]

Returns a formatted file size string, such as 45KB, 100MB, or 1GB

formatFileSize(long fileSize)

fileSize
File size in bytes.

Returns: File size string.

wordWrap(String text, int width)

Wraps text string at word boundaries.

s
String to word wrap.
width
Number of characters at which to wrap.

Returns: Word wrapped string.

escapeXml(String s)

Escape out the xml from the text

s
The text that we need to escape xml from

Returns: The text with xml escaped