FileDocCategorySizeDatePackage
SysDep.javaAPI DocExample555Thu May 29 14:06:30 BST 2003com.darwinsys.lang

SysDep

public class SysDep extends Object
Some things that are System Dependent. All methods are static, like java.lang.Math.
author
Ian Darwin
version
$Id: SysDep.java,v 1.2 2003/05/29 18:06:30 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringgetDevNull()
Return the name of the Null device on platforms which support it, or "jnk" otherwise.

		String sys = System.getProperty("os.name");
		if (sys==null || sys.indexOf("Mac") >= 0)
			return "jnk";
		if (sys.startsWith("Windows"))
			return "NUL:";
		return "/dev/null";