|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.tools.file.filesystem.DiskUtil
Retrieves available disk space for Windows operating system or Linux operating system
| Constructor Summary | |
DiskUtil()
|
|
| Method Summary | |
static long |
getFreeSpace(java.lang.String path)
Retrieves available free space on a hard drive following a file path |
static void |
main(java.lang.String[] args)
Test method testing purpose only |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DiskUtil()
| Method Detail |
public static long getFreeSpace(java.lang.String path)
throws java.lang.Exception
path - file path to a directory (to test the hard drive where is located
the directory)
java.lang.Exception - if the free space can not be retrieved (the operating system is not supported)public static void main(java.lang.String[] args)
args - the path to evaluate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||