Java Universal Role Playing Engine Version 0.3.9

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()


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
 boolean isVista()
          If program is running on Windows Vista
 boolean isXP()
          If program is running on Windows XP
static 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 static void showURL(java.lang.String url)
Displays a URL in current browser application. (It does not function very well...)

Parameters:
url - URL to display

isXP

public boolean isXP()
If program is running on Windows XP

Returns:
true if program is running on a Windows XP OS

isVista

public boolean isVista()
If program is running on Windows Vista

Returns:
true if program is running on a Windows Vista OS

isLinux

public boolean isLinux()
If program is running on Linux

Returns:
true if program is running on Linux

Java Universal Role Playing Engine Version 0.3.9

Copyright ? 2010 http://jurpe.sourceforge.net/ All Rights Reserved.