File: SysPrefs.java

package info (click to toggle)
libjaba-client-java 0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 368 kB
  • ctags: 551
  • sloc: java: 3,332; makefile: 11
file content (29 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
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");
	}
}