jurpe.system
Class OSProps

java.lang.Object
  extended by jurpe.system.OSProps

public final class OSProps
extends java.lang.Object

Contains Operating System related functions. Implemented as a singleton. Use it with OSProps op = OSProps.getReference()

Author:
Alessio Saltarin

Field Summary
static java.lang.String FILESEPARATOR
           
static java.lang.String LINEFEED
           
 
Method Summary
static OSProps getReference()
          Use this method to get to class methods
 boolean isLinux()
          If program is running on Linux
 void showURL(java.lang.String url)
          Displays a URL in current browser application.
 java.lang.String toString()
          String describing OS and Architecture in which program is run.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINEFEED

public static final java.lang.String LINEFEED

FILESEPARATOR

public static final java.lang.String FILESEPARATOR
Method Detail

getReference

public static OSProps getReference()
Use this method to get to class methods

Returns:
OSProps handle

toString

public java.lang.String toString()
String describing OS and Architecture in which program is run.

Overrides:
toString in class java.lang.Object
Returns:
string describing OS and Architecture in which program is run

showURL

public void showURL(java.lang.String url)
Displays a URL in current browser application. (It does not function very well...)

Parameters:
url - URL to display

isLinux

public boolean isLinux()
If program is running on Linux

Returns:
true if program is running on Linux

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net