|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.FileSize
This class converts a filesize into a string.
| Field Summary | |
static int |
BYTES
Public declarations of filesizes |
static int |
GIGABYTE
|
static int |
KILOBYTE
|
static int |
MEGABYTE
|
static int |
TERABYTE
|
| Constructor Summary | |
FileSize(double dFilesize)
Constructor. |
|
FileSize(int nFilesize)
Constructor. |
|
| Method Summary | |
double |
getBytes()
Converts the size to bytes. |
double |
getGb()
Converts the size to kilobytes. |
double |
getKb()
Converts the size to kilobytes. |
double |
getMb()
Converts the size to kilobytes. |
java.lang.String |
toString()
Get size of file |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BYTES
public static final int KILOBYTE
public static final int MEGABYTE
public static final int GIGABYTE
public static final int TERABYTE
| Constructor Detail |
public FileSize(double dFilesize)
dFilesize - Pre-selected filesizepublic FileSize(int nFilesize)
nFilesize - Pre-selected filesize| Method Detail |
public double getBytes()
public double getGb()
public double getKb()
public double getMb()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||