org.montsuqi.util
Class SystemEnvironment

java.lang.Object
  extended by org.montsuqi.util.SystemEnvironment

public class SystemEnvironment
extends java.lang.Object

A class that represents the system(platform) environment.


Method Summary
static java.io.File createFilePath(java.lang.String[] elements)
          Creates a file instance with the given path elements in platform independent way.
static boolean isMacOSX()
          Tests if the system is MacOS X.
static boolean isMS932()
          Tests if the system uses MS932 characters.
static boolean isWindows()
          Tests if the system is Windows.
static void setMacMenuTitle(java.lang.String title)
          On MacOS X, sets the menu title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isMacOSX

public static boolean isMacOSX()

Tests if the system is MacOS X.

Returns:
true if the running system is MacOS X. false otherwise.

isWindows

public static boolean isWindows()

Tests if the system is Windows.

Returns:
true if the running system is Windows. false otherwise.

isMS932

public static boolean isMS932()

Tests if the system uses MS932 characters.

Returns:
true if the running system uses MS932 characters. false otherwise.

setMacMenuTitle

public static void setMacMenuTitle(java.lang.String title)

On MacOS X, sets the menu title.

On other platforms, does nothing.

Parameters:
title - Title to set.

createFilePath

public static java.io.File createFilePath(java.lang.String[] elements)

Creates a file instance with the given path elements in platform independent way.

Parameters:
elements - path elements.
Returns:
the File instance constructed using the given path elements.