|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.util.StringUtil
public final class StringUtil
Static utility functions for trimming strings and converting byte counts to strings.
Constructor Summary | |
---|---|
StringUtil()
|
Method Summary | |
---|---|
static java.lang.String |
nBytesToString(long nBytes,
int digits)
Converts a byte count to a readable string with an unit . |
static java.lang.String |
trimLeft(java.lang.String str)
Trims space from the start of a string. |
static java.lang.String |
trimRight(java.lang.String str)
Trims space from the end of a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtil()
Method Detail |
---|
public static java.lang.String trimLeft(java.lang.String str)
str
- string to trim space characters from
public static java.lang.String trimRight(java.lang.String str)
str
- string to trim space characters from
public static java.lang.String nBytesToString(long nBytes, int digits)
nBytes
- the byte count to printdigits
- how many digits the printout may contain. Note
that this count does not include the unit length
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |