com.evanmclean.evlib.lang
Class Sys

java.lang.Object
  extended by com.evanmclean.evlib.lang.Sys

public class Sys
extends Object

Misc functions for System related info.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Constructor Summary
Sys()
           
 
Method Summary
static File currentFolder()
          Return the current working folder from the system properties.
static File tmpFolder()
          Return the temporary folder from the system properties.
static File userHome()
          Return the user's home folder from the system properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sys

public Sys()
Method Detail

currentFolder

public static File currentFolder()
                          throws IOException
Return the current working folder from the system properties.

Returns:
Return the current working folder from the system properties.
Throws:
IOException - If missing property, missing folder or not a folder.

tmpFolder

public static File tmpFolder()
                      throws IOException
Return the temporary folder from the system properties.

Returns:
Return the temporary folder from the system properties.
Throws:
IOException - If missing property, missing folder or not a folder.

userHome

public static File userHome()
                     throws IOException
Return the user's home folder from the system properties.

Returns:
Return the user's home folder from the system properties.
Throws:
IOException - If missing property, missing folder or not a folder.