1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
package compbio.util;
/**
* Getter for commonly used properties
*
* @author pvtroshin
*
* @version 1.0 August 2009
*/
public final class SysPrefs {
private SysPrefs() {
// Utility class prohibit initialization
}
public static final String newlinechar = System
.getProperty("line.separator");
public static boolean isWindows = System.getProperty("os.name").startsWith(
"Windows");
public static String getCurrentDirectory() {
return System.getProperty("user.dir");
}
public static String getSystemTmpDir() {
return System.getProperty("java.io.tmpdir");
}
}
|