public class FileSize
extends java.lang.Object
The valueOf(java.lang.String)
method can convert strings such as "3 kb", "5 mb", into
FileSize instances. The recognized unit specifications for file size are the
"kb", "mb", and "gb". The unit name may be followed by an "s". Thus, "2 kbs"
and "2 kb" are equivalent. In the absence of a time unit specification, byte
is assumed.
public long getSize()
public static FileSize valueOf(java.lang.String fileSizeStr)