com.Prominic.jFTPd
Class OS

java.lang.Object
  extended by com.Prominic.jFTPd.OS

public class OS
extends java.lang.Object

This class is a wrapper for OS operations (OS name and executing commands) Creation date: (06-Apr-02 12:45:59)


Field Summary
private static java.lang.String osName
           
 
Constructor Summary
OS()
          OS default constructor.
 
Method Summary
static void exec(java.lang.String[] commandToBeRunned)
          Executes a command (equivalent of running it from a command line).
static boolean isWindows()
          Checks if the operating system is Windows (System.getProperty("os.name") starts with "Win".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osName

private static java.lang.String osName
Constructor Detail

OS

public OS()
OS default constructor.

Method Detail

exec

public static void exec(java.lang.String[] commandToBeRunned)
Executes a command (equivalent of running it from a command line). It waits for the command to finish before returning.

Parameters:
commandToBeRunned - - the command to be runned. Creation date: (06-Apr-02 12:48:47)

isWindows

public static boolean isWindows()
Checks if the operating system is Windows (System.getProperty("os.name") starts with "Win". Creation date: (06-Apr-02 12:46:38)

Returns:
boolean - true if the OS is windows.